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:
@@ -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() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user