Use nullptr instead of NULL in the code and documentation
This is a combination of running clang-tidy with modernize-use-nullptr check for some ports (GTK, X11, OSX) and manual changes to the ports for which it couldn't be used easily (MSW, DFB) and also manually updating the docs. Also replace NULL with null or nullptr in the comments as this is more consistent with the use of nullptr in the code and makes it simpler to grep for the remaining occurrences of NULL itself. And also use null in the assert messages. Only a few occurrences of "NULL" are still left in non-C files, mostly corresponding to unclear comments or string output which it might not be safe to change.
This commit is contained in:
parent
39ea524943
commit
4f4c5fcfdf
1844 changed files with 13721 additions and 13734 deletions
|
|
@ -248,8 +248,8 @@ void StringTestCase::Constructors()
|
|||
const char *end = wxStrchr(s, '!');
|
||||
CPPUNIT_ASSERT_EQUAL( "really", wxString(start, end) );
|
||||
|
||||
// test if creating string from NULL C pointer works:
|
||||
CPPUNIT_ASSERT_EQUAL( "", wxString((const char *)NULL) );
|
||||
// test if creating string from null C pointer works:
|
||||
CPPUNIT_ASSERT_EQUAL( "", wxString((const char *)nullptr) );
|
||||
}
|
||||
|
||||
void StringTestCase::StaticConstructors()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue