Skip to content

Commit 9e47682

Browse files
committed
refactor: convert NULL to nullptr in function parameters
1 parent 62d7a43 commit 9e47682

File tree

78 files changed

+230
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+230
-230
lines changed

Core/Libraries/Source/WWVegas/WWAudio/SoundSceneObj.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ CriticalSectionClass SoundSceneObjClass::m_IDListMutex;
7676
class HandleMgrClass
7777
{
7878
public:
79-
HandleMgrClass (void) { SoundSceneObjClass::m_IDListMutex = ::CreateMutex (NULL, FALSE, nullptr); }
79+
HandleMgrClass (void) { SoundSceneObjClass::m_IDListMutex = ::CreateMutex (nullptr, FALSE, nullptr); }
8080
~HandleMgrClass (void) { ::CloseHandle (SoundSceneObjClass::m_IDListMutex); }
8181
8282
};

Core/Libraries/Source/WWVegas/WWDebug/wwmemlog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ WWINLINE void * Get_Mem_Log_Mutex(void)
274274
#if MEMLOG_USE_MUTEX
275275

276276
if (_MemLogMutex == nullptr) {
277-
_MemLogMutex=CreateMutex(NULL,false,nullptr);
277+
_MemLogMutex=CreateMutex(nullptr,false,nullptr);
278278
WWASSERT(_MemLogMutex);
279279
}
280280
return _MemLogMutex;

Core/Libraries/Source/WWVegas/WWLib/DbgHelpLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DbgHelpLoader::DbgHelpLoader()
3535
, m_symFunctionTableAccess(nullptr)
3636
, m_stackWalk(nullptr)
3737
#ifdef RTS_ENABLE_CRASHDUMP
38-
, m_miniDumpWriteDump(NULL)
38+
, m_miniDumpWriteDump(nullptr)
3939
#endif
4040
, m_dllModule(HMODULE(nullptr))
4141
, m_referenceCount(0)

Core/Libraries/Source/WWVegas/WWLib/tgatodxt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void TGAToDXTClass::Write (const char *outputpathname)
216216

217217
// Stamp the write time (if one has been supplied).
218218
if (WriteTimePtr != nullptr) {
219-
SetFileTime (hfile, nullptr, NULL, WriteTimePtr);
219+
SetFileTime (hfile, nullptr, nullptr, WriteTimePtr);
220220
}
221221

222222
CloseHandle (hfile);

Core/Libraries/Source/debug/debug_except.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ LONG __stdcall DebugExceptionhandler::ExceptionFilter(struct _EXCEPTION_POINTERS
413413
// Show a dialog box
414414
InitCommonControls();
415415
exPtrs=pExPtrs;
416-
DialogBoxIndirect(NULL,(LPDLGTEMPLATE)rcException,nullptr,ExceptionDlgProc);
416+
DialogBoxIndirect(nullptr,(LPDLGTEMPLATE)rcException,nullptr,ExceptionDlgProc);
417417

418418
// Now die
419419
return EXCEPTION_EXECUTE_HANDLER;

Core/Libraries/Source/debug/debug_macro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ DFAIL_IF_MSG(!ptrval,"pointer must not be NULL") return;
350350
#define DLOG_GROUP(group,what) ((void)0)
351351
#define DLOG_GROUP_DESCR(g,d)
352352
#define DCRASH(msg) ((void)0)
353-
#define DCRASH_RELEASE(msg) (Debug::SkipNext(),(Debug::CrashBegin(NULL,0) << msg).CrashDone(true))
353+
#define DCRASH_RELEASE(msg) (Debug::SkipNext(),(Debug::CrashBegin(nullptr,0) << msg).CrashDone(true))
354354
#define DFAIL() ((void)0)
355355
#define D_ISLOG() false
356356
#define D_ISLOG_GROUP(group) false

Core/Libraries/Source/profile/profile_funclevel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ const char *ProfileFuncLevel::Id::GetSource(void) const
574574
{
575575
char helpFunc[256],helpFile[256];
576576
unsigned ofsFunc;
577-
DebugStackwalk::Signature::GetSymbol(func->addr,
577+
DebugStackwalk::Signature::GetSymbol(func->addr, nullptr,0,nullptr, helpFunc,sizeof(helpFunc),&ofsFunc, helpFile,sizeof(helpFile),&func->funcLine,nullptr);
578578
NULL,0,nullptr,
579579
helpFunc,sizeof(helpFunc),&ofsFunc,
580580
helpFile,sizeof(helpFile),&func->funcLine,nullptr);

Core/Tools/Autorun/EZGIMEX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
/* And increase stream buffer */
5151
/*
52-
setvbuf(f, NULL, _IOFBF, FILE_BUFFER_SIZE);
52+
setvbuf(f, nullptr, _IOFBF, FILE_BUFFER_SIZE);
5353
*/
5454

5555
#define __NOINLINE__ 1

Core/Tools/Autorun/Locale_API.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ const char* Locale_GetString( int StringID, char *String )
322322
#endif
323323

324324
Remove_Quotes_Around_String( wide_buffer );
325-
WideCharToMultiByte( CodePage, 0, wide_buffer, _MAX_PATH, buffer, _MAX_PATH, nullptr, NULL );
325+
WideCharToMultiByte( CodePage, 0, wide_buffer, _MAX_PATH, buffer, _MAX_PATH, nullptr, nullptr );
326326

327327
if( String != nullptr ) {
328328
strncpy( String, buffer, _MAX_PATH );

Core/Tools/Autorun/TTFont.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ Point2D TTFontClass::Print(
678678
int length = wcslen( string );
679679

680680
memset( buffer, '\0', _MAX_PATH );
681-
WideCharToMultiByte( CodePage, 0, string, length, buffer, _MAX_PATH, nullptr, NULL );
681+
WideCharToMultiByte( CodePage, 0, string, length, buffer, _MAX_PATH, nullptr, nullptr );
682682

683683
return( Print( hdc, buffer, cliprect, forecolor, backcolor, flag, shadow ));
684684
}
@@ -1224,7 +1224,7 @@ FontManagerClass::FontManagerClass ( HDC hdc )
12241224
strcpy( szFacename, "Arial" );
12251225

12261226
strcpy( szPath, Args->Get_argv(0));
1227-
_splitpath( szPath, drive, dir, nullptr, NULL );
1227+
_splitpath( szPath, drive, dir, nullptr, nullptr );
12281228
_makepath( szPath, drive, dir, "Setup\\Setup", ".ini" );
12291229

12301230
GetPrivateProfileString( "Fonts", "Font", "Arial.tff", szFile, MAX_PATH, szPath );

0 commit comments

Comments
 (0)