Replace 0 and NULL with nullptr where apropriate.

- fixed using clang-tidy's modernize-use-nullptr check.
This commit is contained in:
Jim Evins
2017-03-21 23:48:13 -04:00
parent e09936233a
commit 4be4ea08f6
54 changed files with 124 additions and 124 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ namespace glabels
///
void Factory::init()
{
static Factory* singletonInstance = 0;
static Factory* singletonInstance = nullptr;
if ( !singletonInstance )
{
singletonInstance = new Factory();
+1 -1
View File
@@ -95,7 +95,7 @@ namespace glabels
mRecordList.clear();
open();
for ( Record* record = readNextRecord(); record != 0; record = readNextRecord() )
for ( Record* record = readNextRecord(); record != nullptr; record = readNextRecord() )
{
mRecordList.append( record );
}
+1 -1
View File
@@ -119,7 +119,7 @@ namespace glabels
///
Record* None::readNextRecord()
{
return 0;
return nullptr;
}
}
+1 -1
View File
@@ -139,7 +139,7 @@ namespace glabels
return record;
}
return 0;
return nullptr;
}