X-Git-Url: https://vaikene.ee/gitweb/gitweb.cgi?p=evaf;a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fregistry.cpp;fp=src%2Flibs%2FCommon%2Fregistry.cpp;h=c3bc2bef251e08c2d0a96a891d845d50fa0ec1a1;hp=37b47e03e4037208427242734e755b9650bdae9a;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hpb=13dedf19c628b9967e4c4106ab0fd967f1df0b90 diff --git a/src/libs/Common/registry.cpp b/src/libs/Common/registry.cpp index 37b47e0..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. * @@ -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)