Be consistent about using nullptr instead of 0

0 can be too easily overloaded into an int, so ensure we use nullptr
when we mean pointers.
This commit is contained in:
Ian McInerney
2021-04-22 22:20:34 +01:00
parent fcca4bc3e6
commit ecd9bf696e
41 changed files with 169 additions and 169 deletions
+3 -3
View File
@@ -219,7 +219,7 @@ LIB_TABLE_ROW* LIB_TABLE::findRow( const wxString& aNickName, bool aCheckIfEnabl
}
// not found, search fall back table(s), if any
} while( ( cur = cur->fallBack ) != 0 );
} while( ( cur = cur->fallBack ) != nullptr );
return nullptr; // not found
}
@@ -255,7 +255,7 @@ const LIB_TABLE_ROW* LIB_TABLE::FindRowByURI( const wxString& aURI )
}
// not found, search fall back table(s), if any
} while( ( cur = cur->fallBack ) != 0 );
} while( ( cur = cur->fallBack ) != nullptr );
return nullptr; // not found
}
@@ -281,7 +281,7 @@ std::vector<wxString> LIB_TABLE::GetLogicalLibs()
}
}
} while( ( cur = cur->fallBack ) != 0 );
} while( ( cur = cur->fallBack ) != nullptr );
ret.reserve( unique.size() );