fixes #130 missing const declarator in IContext::hasObject

This commit is contained in:
Roland Winklmeier
2014-02-07 22:31:32 +01:00
parent 3eff2f5fb1
commit 7b646610c5

View File

@@ -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);
}
/*!