Mercurial > hg > svcore
comparison plugin/PluginScan.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 232d6ddf257d |
children | 40d8b01efbc6 |
comparison
equal
deleted
inserted
replaced
1581:ad5f892c0c4d | 1582:70e172e6cc59 |
---|---|
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 } |