From 7b646610c50d973f79accc0d63521e6ce4dde74f Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Fri, 7 Feb 2014 22:31:32 +0100 Subject: [PATCH] fixes #130 missing const declarator in IContext::hasObject --- src/blackmisc/context.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blackmisc/context.h b/src/blackmisc/context.h index 9134a1eda..55c833b69 100644 --- a/src/blackmisc/context.h +++ b/src/blackmisc/context.h @@ -93,8 +93,8 @@ namespace BlackMisc */ template bool hasObject(const QString &name = T::staticMetaObject.className()) const { - QObject *qobj = getQObjectNothrow(name); - return qobj && qobject_cast(qobj); + const QObject *qobj = getQObjectNothrow(name); + return qobj && qobject_cast(qobj); } /*!