@@ -321,7 +321,7 @@ class MemoryPool
321321 void addToList (MemoryPool **pHead); // /< add this pool to head of the linked list
322322 void removeFromList (MemoryPool **pHead); // /< remove this pool from the linked list
323323 #ifdef MEMORYPOOL_DEBUG
324- static void debugPoolInfoReport ( MemoryPool *pool, FILE *fp = NULL ); // /< dump a report about this pool to the logfile
324+ static void debugPoolInfoReport ( MemoryPool *pool, FILE *fp = nullptr ); // /< dump a report about this pool to the logfile
325325 const char *debugGetBlockTagString (void *pBlock); // /< return the tagstring for the given block (assumed to belong to this pool)
326326 void debugMemoryVerifyPool (); // /< perform internal consistency check on this pool.
327327 Int debugPoolReportLeaks ( const char * owner );
@@ -421,7 +421,7 @@ class DynamicMemoryAllocator
421421 Int debugCalcRawBlockBytes (Int *numBlocks); // /< calculate the number of bytes in "raw" (non-subpool) blocks
422422 void debugMemoryVerifyDma (); // /< perform internal consistency check
423423 const char *debugGetBlockTagString (void *pBlock); // /< return the tagstring for the given block (assumed to belong to this dma)
424- void debugDmaInfoReport ( FILE *fp = NULL ); // /< dump a report about this pool to the logfile
424+ void debugDmaInfoReport ( FILE *fp = nullptr ); // /< dump a report about this pool to the logfile
425425 Int debugDmaReportLeaks ();
426426 #endif
427427 #ifdef MEMORYPOOL_CHECKPOINTING
@@ -545,7 +545,7 @@ class MemoryPoolFactory
545545 // / destroy the contents of all pools and dmas. (the pools and dma's are not destroyed, just reset)
546546 void reset ();
547547
548- void memoryPoolUsageReport ( const char * filename, FILE *appendToFileInstead = NULL );
548+ void memoryPoolUsageReport ( const char * filename, FILE *appendToFileInstead = nullptr );
549549
550550 #ifdef MEMORYPOOL_DEBUG
551551
@@ -559,7 +559,7 @@ class MemoryPoolFactory
559559 const char *debugGetBlockTagString (void *pBlock);
560560
561561 // / dump a report with the given options to the logfile.
562- void debugMemoryReport (Int flags, Int startCheckpoint, Int endCheckpoint, FILE *fp = NULL );
562+ void debugMemoryReport (Int flags, Int startCheckpoint, Int endCheckpoint, FILE *fp = nullptr );
563563
564564 void debugSetInitFillerIndex (Int index);
565565
@@ -902,9 +902,9 @@ class MemoryPoolObjectHolder
902902private:
903903 MemoryPoolObject *m_mpo;
904904public:
905- MemoryPoolObjectHolder (MemoryPoolObject *mpo = NULL ) : m_mpo(mpo) { }
905+ MemoryPoolObjectHolder (MemoryPoolObject *mpo = nullptr ) : m_mpo(mpo) { }
906906 void hold (MemoryPoolObject *mpo) { DEBUG_ASSERTCRASH (!m_mpo, (" already holding" )); m_mpo = mpo; }
907- void release () { m_mpo = NULL ; }
907+ void release () { m_mpo = nullptr ; }
908908 ~MemoryPoolObjectHolder () { deleteInstance (m_mpo); }
909909};
910910
0 commit comments