comparison transform/TransformFactory.cpp @ 1582:70e172e6cc59 fix-static-analysis

Use nullptr throughout
author Chris Cannam
date Mon, 26 Nov 2018 14:33:41 +0000
parents 9c14dee72329
children 5f8fbbde08ff
comparison
equal deleted inserted replaced
1581:ad5f892c0c4d 1582:70e172e6cc59
53 void 53 void
54 TransformFactory::deleteInstance() 54 TransformFactory::deleteInstance()
55 { 55 {
56 SVDEBUG << "TransformFactory::deleteInstance called" << endl; 56 SVDEBUG << "TransformFactory::deleteInstance called" << endl;
57 delete m_instance; 57 delete m_instance;
58 m_instance = 0; 58 m_instance = nullptr;
59 } 59 }
60 60
61 TransformFactory::TransformFactory() : 61 TransformFactory::TransformFactory() :
62 m_transformsPopulated(false), 62 m_transformsPopulated(false),
63 m_uninstalledTransformsPopulated(false), 63 m_uninstalledTransformsPopulated(false),
64 m_thread(0), 64 m_thread(nullptr),
65 m_exiting(false), 65 m_exiting(false),
66 m_populatingSlowly(false) 66 m_populatingSlowly(false)
67 { 67 {
68 } 68 }
69 69
788 Transform t; 788 Transform t;
789 t.setIdentifier(identifier); 789 t.setIdentifier(identifier);
790 if (rate == 0) rate = 44100.0; 790 if (rate == 0) rate = 44100.0;
791 QString pluginId = t.getPluginIdentifier(); 791 QString pluginId = t.getPluginIdentifier();
792 792
793 Vamp::PluginBase *plugin = 0; 793 Vamp::PluginBase *plugin = nullptr;
794 794
795 if (t.getType() == Transform::FeatureExtraction) { 795 if (t.getType() == Transform::FeatureExtraction) {
796 796
797 SVDEBUG << "TransformFactory::instantiateDefaultPluginFor: identifier \"" 797 SVDEBUG << "TransformFactory::instantiateDefaultPluginFor: identifier \""
798 << identifier << "\" is a feature extraction transform" << endl; 798 << identifier << "\" is a feature extraction transform" << endl;