Mercurial > hg > svcore
comparison plugin/PluginScan.cpp @ 1586:841b2a3e606d
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:38 +0000 |
parents | 70e172e6cc59 |
children | 40d8b01efbc6 |
comparison
equal
deleted
inserted
replaced
1585:9570ef94eaa3 | 1586:841b2a3e606d |
---|---|
29 #ifdef HAVE_PLUGIN_CHECKER_HELPER | 29 #ifdef HAVE_PLUGIN_CHECKER_HELPER |
30 : public PluginCandidates::LogCallback | 30 : public PluginCandidates::LogCallback |
31 #endif | 31 #endif |
32 { | 32 { |
33 protected: | 33 protected: |
34 void log(std::string message) { | 34 void log(std::string message) override { |
35 SVDEBUG << "PluginScan: " << message << endl; | 35 SVDEBUG << "PluginScan: " << message << endl; |
36 } | 36 } |
37 }; | 37 }; |
38 | 38 |
39 PluginScan *PluginScan::getInstance() | 39 PluginScan *PluginScan::getInstance() |
40 { | 40 { |
41 static QMutex mutex; | 41 static QMutex mutex; |
42 static PluginScan *m_instance = 0; | 42 static PluginScan *m_instance = nullptr; |
43 mutex.lock(); | 43 mutex.lock(); |
44 if (!m_instance) m_instance = new PluginScan(); | 44 if (!m_instance) m_instance = new PluginScan(); |
45 mutex.unlock(); | 45 mutex.unlock(); |
46 return m_instance; | 46 return m_instance; |
47 } | 47 } |