Skip to content

Commit eba1e1b

Browse files
committed
refactor: convert final NULL instances to nullptr
1 parent f887d9b commit eba1e1b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Core/Tools/Autorun/GETCD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const char *GetCDClass::Get_Volume_For_This_CD_Drive ( const char *path, char *v
302302
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
303303
(LPTSTR) &lpMsgBuf,
304304
0,
305-
NULL
305+
nullptr
306306
);
307307
Msg( __LINE__, __FILE__, (LPTSTR)lpMsgBuf );
308308
LocalFree( lpMsgBuf );

Core/Tools/Autorun/ViewHTML.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ bool ViewHTML(const char* url, bool wait, const CallbackHook& callback)
158158
BOOL createSuccess = CreateProcess(
159159
exeName,
160160
commandLine,
161-
NULL,
162-
NULL,
161+
nullptr,
162+
nullptr,
163163
FALSE,
164164
0,
165-
NULL,
166-
NULL,
165+
nullptr,
166+
nullptr,
167167
&startupInfo,
168168
&processInfo);
169169

Core/Tools/WW3D/pluglib/rawfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ bool RawFileClass::Is_Available(int forced)
541541
Handle=fopen(Filename,"r");
542542
#else
543543
Handle = CreateFileA(Filename, GENERIC_READ, FILE_SHARE_READ,
544-
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
544+
nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
545545
#endif
546546

547547
if (Handle == nullptr) {

0 commit comments

Comments
 (0)