Start expunging NULL.

Given that KiCad is a C++ project, we should really be using nullptr
instead of NULL.
This commit is contained in:
Wayne Stambaugh
2021-07-15 15:44:45 -04:00
parent 1e21daf781
commit bcd6bddfd4
86 changed files with 951 additions and 792 deletions
+3 -3
View File
@@ -553,7 +553,7 @@ void PDF_PLOTTER::closePdfStream()
else
{
// NULL means memos owns the memory, but provide a hint on optimum size needed.
wxMemoryOutputStream memos( NULL, std::max( 2000l, stream_len ) ) ;
wxMemoryOutputStream memos( nullptr, std::max( 2000l, stream_len ) ) ;
{
/* Somewhat standard parameters to compress in DEFLATE. The PDF spec is
@@ -752,7 +752,7 @@ bool PDF_PLOTTER::EndPlot()
// The info dictionary
int infoDictHandle = startPdfObject();
char date_buf[250];
time_t ltime = time( NULL );
time_t ltime = time( nullptr );
strftime( date_buf, 250, "D:%Y%m%d%H%M%S", localtime( &ltime ) );
if( m_title.IsEmpty() )
@@ -811,7 +811,7 @@ bool PDF_PLOTTER::EndPlot()
(unsigned long) xrefTable.size(), catalogHandle, infoDictHandle, xref_start );
fclose( m_outputFile );
m_outputFile = NULL;
m_outputFile = nullptr;
return true;
}