X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Flibs%2FCommon%2Fregistry.cpp;h=c3bc2bef251e08c2d0a96a891d845d50fa0ec1a1;hb=HEAD;hp=6c8cc620151009086eb7cb186661bb91a0170824;hpb=0c61450fcffcb36a6e23ca5b083c26543d956084;p=evaf
diff --git a/src/libs/Common/registry.cpp b/src/libs/Common/registry.cpp
index 6c8cc62..c3bc2be 100644
--- a/src/libs/Common/registry.cpp
+++ b/src/libs/Common/registry.cpp
@@ -3,7 +3,7 @@
* @brief Common registry implementation
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -57,7 +57,7 @@ bool Registry::registerInterface(QString const & name, QObject * obj)
// Add the interface to the list of registered interfaces and connect to
// the destroyed() signal.
mInterfaces.insert(name, obj);
- connect(obj, SIGNAL(destroyed()), this, SLOT(interfaceDestroyed(QObject *)));
+ connect(obj, SIGNAL(destroyed(QObject *)), this, SLOT(interfaceDestroyed(QObject *)));
return true;
}
@@ -65,7 +65,7 @@ bool Registry::registerInterface(QString const & name, QObject * obj)
QObject * Registry::queryInterface(QString const & name) const
{
Interfaces::const_iterator it = mInterfaces.constFind(name);
- return it != mInterfaces.constEnd() ? *it : 0;
+ return it != mInterfaces.constEnd() ? *it : nullptr;
}
void Registry::interfaceDestroyed(QObject * obj)