Skip to content

Commit a73031f

Browse files
committed
refactor: update NULL to nullptr in comments and documentation
1 parent 0965e01 commit a73031f

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

Core/GameEngine/Source/Common/System/MiniDumper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ void MiniDumper::ShutdownDumpThread()
230230
{
231231
if (IsDumpThreadStillRunning())
232232
{
233-
DEBUG_ASSERTCRASH(m_quitting != nullptr, ("MiniDumper::ShutdownDumpThread: Dump thread still running despite m_quitting being NULL"));
233+
DEBUG_ASSERTCRASH(m_quitting != nullptr, ("MiniDumper::ShutdownDumpThread: Dump thread still running despite m_quitting being nullptr"));
234234
::SetEvent(m_quitting);
235235

236236
DWORD waitRet = ::WaitForSingleObject(m_dumpThread, 3000);
@@ -323,7 +323,7 @@ DWORD WINAPI MiniDumper::MiniDumpThreadProc(LPVOID lpParam)
323323
{
324324
if (lpParam == nullptr)
325325
{
326-
DEBUG_LOG(("MiniDumper::MiniDumpThreadProc: The provided parameter was NULL, exiting thread."));
326+
DEBUG_LOG(("MiniDumper::MiniDumpThreadProc: The provided parameter was nullptr, exiting thread."));
327327
return MiniDumperExitCode_FailureParam;
328328
}
329329

Core/Libraries/Source/debug/debug_debug.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ DLOG( "My HResult is: " << Debug::HResult(SomeHRESULTValue) << "\n" );
365365
366366
\param file file that contains DASSERT or DASSERT_MSG macro
367367
\param line line where assert macro can be found
368-
\param expr expression that triggered the assertion, NULL for 'general failure' (\ref DFAIL)
368+
\param expr expression that triggered the assertion, nullptr for 'general failure' (\ref DFAIL)
369369
\return reference to Debug instance
370370
*/
371371
static Debug &AssertBegin(const char *file, int line, const char *expr);
@@ -439,7 +439,7 @@ DLOG( "My HResult is: " << Debug::HResult(SomeHRESULTValue) << "\n" );
439439
Starts building the crash string which will then be send to the active
440440
output destinations.
441441
442-
\param file file that contains DCRASH or DCRASH_RELEASE macro, if NULL
442+
\param file file that contains DCRASH or DCRASH_RELEASE macro, if nullptr
443443
then no file info is given (used by DCRASH_RELEASE in release
444444
builds)
445445
\param line line where crash macro can be found, 0 if no line info should
@@ -823,7 +823,7 @@ DLOG( "My HResult is: " << Debug::HResult(SomeHRESULTValue) << "\n" );
823823
/// factory function
824824
DebugIOInterface* (*factory)(void);
825825

826-
/// I/O interface (may be NULL)
826+
/// I/O interface (may be nullptr)
827827
DebugIOInterface *io;
828828

829829
/// input buffer
@@ -1040,7 +1040,7 @@ DLOG( "My HResult is: " << Debug::HResult(SomeHRESULTValue) << "\n" );
10401040
Returns translated group name.
10411041
10421042
\param fileOrGroup file or log group
1043-
\param descr description, may be NULL
1043+
\param descr description, may be nullptr
10441044
\return translated log group name
10451045
*/
10461046
const char *AddLogGroup(const char *fileOrGroup, const char *descr);

Core/Libraries/Source/debug/debug_io.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,19 @@ class DebugIOInterface
106106
\brief Write out some characters differentiated by the log string type.
107107
108108
\param type possible string type
109-
\param src string source, may be NULL, content depends on type:
109+
\param src string source, may be nullptr, content depends on type:
110110
<table><tr>
111111
<td><b>type</b></td><td><b>src</b></td></tr><tr>
112112
<td>Assert</td><td>file(line)</td></tr><tr>
113113
<td>Check</td><td>file(line)</td></tr><tr>
114114
<td>Log</td><td>log group</td></tr><tr>
115115
<td>Crash</td><td>file(line)</td></tr><tr>
116-
<td>Exception</td><td>NULL</td></tr><tr>
116+
<td>Exception</td><td>nullptr</td></tr><tr>
117117
<td>CmdReply</td><td>group.command</td></tr><tr>
118118
<td>StructuredCmdReply</td><td>group.command</td></tr><tr>
119-
<td>Other</td><td>NULL</td>
119+
<td>Other</td><td>nullptr</td>
120120
</tr></table>
121-
\param str string to output, NUL delimited, if NULL then simply flush
121+
\param str string to output, NUL delimited, if nullptr then simply flush
122122
output (if applicable)
123123
*/
124124
virtual void Write(StringType type, const char *src, const char *str)=0;

Core/Libraries/Source/debug/debug_stack.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ class DebugStackwalk
116116
\brief Determines symbol for given address.
117117
118118
\param addr function address
119-
\param bufMod module buffer, may be NULL
119+
\param bufMod module buffer, may be nullptr
120120
\param sizeMod size of buffer, including NUL, minimum 16 if given
121-
\param relMod relative address within module, may be NULL
122-
\param bufSym symbol buffer, may be NULL
121+
\param relMod relative address within module, may be nullptr
122+
\param bufSym symbol buffer, may be nullptr
123123
\param sizeSym size of buffer, including NUL
124-
\param relSym relative address within symbol, may be NULL
125-
\param bufFile file name buffer, may be NULL
124+
\param relSym relative address within symbol, may be nullptr
125+
\param bufFile file name buffer, may be nullptr
126126
\param sizeFile size of buffer, including NUL
127-
\param line line number, may be NULL
128-
\param relLine relative address within line, may be NULL
127+
\param line line number, may be nullptr
128+
\param relLine relative address within line, may be nullptr
129129
*/
130130
static void GetSymbol(unsigned addr,
131131
char *bufMod, unsigned sizeMod, unsigned *relMod,
@@ -151,7 +151,7 @@ class DebugStackwalk
151151
\brief Walks the stack from the given address.
152152
153153
\param sig stack signature to return
154-
\param ctx processor context, if NULL then use current address
154+
\param ctx processor context, if nullptr then use current address
155155
\return number of addresses found
156156
*/
157157
static int StackWalk(Signature &sig, struct _CONTEXT *ctx=0);

Core/Libraries/Source/debug/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void *DebugAllocMemory(unsigned numBytes);
6868
given size.
6969
This function performs a controlled crash on failure.
7070
71-
\param oldPtr pointer to old memory block, may be NULL
71+
\param oldPtr pointer to old memory block, may be nullptr
7272
\param newSize new size of block
7373
\return pointer to reallocated memory
7474
*/

Core/Libraries/Source/debug/internal_io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class DebugIOFlat: public DebugIOInterface
204204
\brief Expands a magic filename into a real filename.
205205
206206
\param src magic filename or real filename
207-
\param splitName split name, NULL for default stream
207+
\param splitName split name, nullptr for default stream
208208
\param buf output buffer, must have a size of at least 256 char's
209209
*/
210210
static void ExpandMagic(const char *src, const char *splitName, char *buf);

0 commit comments

Comments
 (0)