Mercurial > hg > svcore
comparison base/Debug.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
| author | Chris Cannam | 
|---|---|
| date | Mon, 26 Nov 2018 14:33:41 +0000 | 
| parents | 04a198887a3d | 
| children | 40420fa95ffe | 
   comparison
  equal
  deleted
  inserted
  replaced
| 1581:ad5f892c0c4d | 1582:70e172e6cc59 | 
|---|---|
| 22 #include <QCoreApplication> | 22 #include <QCoreApplication> | 
| 23 #include <QDateTime> | 23 #include <QDateTime> | 
| 24 | 24 | 
| 25 #include <stdexcept> | 25 #include <stdexcept> | 
| 26 | 26 | 
| 27 static SVDebug *svdebug = 0; | 27 static SVDebug *svdebug = nullptr; | 
| 28 static SVCerr *svcerr = 0; | 28 static SVCerr *svcerr = nullptr; | 
| 29 static QMutex mutex; | 29 static QMutex mutex; | 
| 30 | 30 | 
| 31 SVDebug &getSVDebug() { | 31 SVDebug &getSVDebug() { | 
| 32 mutex.lock(); | 32 mutex.lock(); | 
| 33 if (!svdebug) { | 33 if (!svdebug) { | 
| 51 | 51 | 
| 52 bool SVDebug::m_silenced = false; | 52 bool SVDebug::m_silenced = false; | 
| 53 bool SVCerr::m_silenced = false; | 53 bool SVCerr::m_silenced = false; | 
| 54 | 54 | 
| 55 SVDebug::SVDebug() : | 55 SVDebug::SVDebug() : | 
| 56 m_prefix(0), | 56 m_prefix(nullptr), | 
| 57 m_ok(false), | 57 m_ok(false), | 
| 58 m_eol(true) | 58 m_eol(true) | 
| 59 { | 59 { | 
| 60 if (m_silenced) return; | 60 if (m_silenced) return; | 
| 61 | 61 | 
