mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +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
|
||||
{
|
||||
QObject *qobj = getQObjectNothrow(name);
|
||||
return qobj && qobject_cast<T *>(qobj);
|
||||
const QObject *qobj = getQObjectNothrow(name);
|
||||
return qobj && qobject_cast<const T *>(qobj);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user