]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/registry.cpp
More work on the common library and the main GUI application.
[evaf] / src / libs / Common / registry.cpp
index c0f9cae9e1f4e4330213f20d3d6a758fc044e447..d93e469eaeea97185e39c9e61b7f9db0146fa261 100644 (file)
@@ -41,7 +41,7 @@ using namespace eVaf::Common::Internal;
 Registry::Registry()
     : iRegistry()
 {
-    setObjectName(QString("%1-iRegistry").arg(VER_MODULENAME_STR));
+    setObjectName(QString("%1-iRegistry").arg(VER_MODULE_NAME_STR));
 
     // Register our own interface
     registerInterface("iRegistry", this);
@@ -55,9 +55,11 @@ Registry::~Registry()
 bool Registry::registerInterface(QString const & name, QObject * obj)
 {
     mInterfaces.insert(name, QPointer<QObject>(obj));
+
+    return true;
 }
 
-QObject * Registry::queryInterface(QString const & name)
+QObject * Registry::queryInterface(QString const & name) const
 {
     QHash<QString, QPointer<QObject> >::const_iterator it = mInterfaces.constFind(name);
     return it != mInterfaces.constEnd() ? *it : 0;