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
+2 -2
View File
@@ -115,7 +115,7 @@ bool PDF_PLOTTER::OpenFile( const wxString& aFullFilename )
// Open the PDF file in binary mode
m_outputFile = wxFopen( m_filename, wxT( "wb" ) );
if( m_outputFile == NULL )
if( m_outputFile == nullptr )
return false ;
return true;
@@ -543,7 +543,7 @@ void PDF_PLOTTER::closePdfStream()
// We are done with the temporary file, junk it
fclose( workFile );
workFile = 0;
workFile = nullptr;
::wxRemoveFile( workFilename );
unsigned out_count;