diff options
Diffstat (limited to 'TelepathyQt/optional-interface-factory.h')
-rw-r--r-- | TelepathyQt/optional-interface-factory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TelepathyQt/optional-interface-factory.h b/TelepathyQt/optional-interface-factory.h index fb3f1309..83a73894 100644 --- a/TelepathyQt/optional-interface-factory.h +++ b/TelepathyQt/optional-interface-factory.h @@ -101,7 +101,7 @@ public: // vexing-parse QString name( (QLatin1String(Interface::staticInterfaceName())) ); if (check == CheckInterfaceSupported && !mInterfaces.contains(name)) { - return 0; + return nullptr; } // If present or forced, delegate to OptionalInterfaceFactory @@ -111,7 +111,7 @@ public: template <typename Interface> inline Interface *interface() const { - AbstractInterface* interfaceMustBeASubclassOfAbstractInterface = static_cast<Interface *>(NULL); + AbstractInterface* interfaceMustBeASubclassOfAbstractInterface = static_cast<Interface *>(nullptr); Q_UNUSED(interfaceMustBeASubclassOfAbstractInterface); // If there is a interface cached already, return it |