Mercurial > hg > svcore
diff plugin/PiperVampPluginFactory.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 2b532ff7f22e |
children | 5f8fbbde08ff |
line wrap: on
line diff
--- a/plugin/PiperVampPluginFactory.cpp Mon Nov 26 13:51:36 2018 +0000 +++ b/plugin/PiperVampPluginFactory.cpp Mon Nov 26 14:33:41 2018 +0000 @@ -174,12 +174,12 @@ if (m_origins.find(identifier) == m_origins.end()) { SVCERR << "ERROR: No known server for identifier " << identifier << endl; - return 0; + return nullptr; } auto psd = getPluginStaticData(identifier); if (psd.pluginKey == "") { - return 0; + return nullptr; } SVDEBUG << "PiperVampPluginFactory: Creating PiperAutoPlugin for server " @@ -194,7 +194,7 @@ if (!ap->isOK()) { delete ap; - return 0; + return nullptr; } return ap;