mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:51:23 +08:00
fixes #130 missing const declarator in IContext::hasObject
This commit is contained in:
@@ -93,8 +93,8 @@ namespace BlackMisc
|
|||||||
*/
|
*/
|
||||||
template <class T> bool hasObject(const QString &name = T::staticMetaObject.className()) const
|
template <class T> bool hasObject(const QString &name = T::staticMetaObject.className()) const
|
||||||
{
|
{
|
||||||
QObject *qobj = getQObjectNothrow(name);
|
const QObject *qobj = getQObjectNothrow(name);
|
||||||
return qobj && qobject_cast<T *>(qobj);
|
return qobj && qobject_cast<const T *>(qobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Reference in New Issue
Block a user