diff options
author | 2015-12-03 18:17:25 +0100 | |
---|---|---|
committer | 2015-12-03 18:17:25 +0100 | |
commit | 91605d3f4df9b9fb1490c276053ff274fb728816 (patch) | |
tree | ec89d290d9bfba3b27d4aa28336a5ac9a9d45a7a /src/emu/debug/textbuf.cpp | |
parent | 5232ca932afe0acc8c3ef2bd3599e04a8c7def69 (diff) |
clang-modernize part 1 (nw)
Diffstat (limited to 'src/emu/debug/textbuf.cpp')
-rw-r--r-- | src/emu/debug/textbuf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/textbuf.cpp b/src/emu/debug/textbuf.cpp index 52fd669a997..cd96be9cd5a 100644 --- a/src/emu/debug/textbuf.cpp +++ b/src/emu/debug/textbuf.cpp @@ -88,14 +88,14 @@ text_buffer *text_buffer_alloc(UINT32 bytes, UINT32 lines) /* allocate memory for the text buffer object */ text = (text_buffer *)global_alloc(text_buffer); if (!text) - return NULL; + return nullptr; /* allocate memory for the buffer itself */ text->buffer = (char *)global_alloc_array(char, bytes); if (!text->buffer) { global_free(text); - return NULL; + return nullptr; } /* allocate memory for the lines array */ @@ -104,7 +104,7 @@ text_buffer *text_buffer_alloc(UINT32 bytes, UINT32 lines) { global_free_array(text->buffer); global_free(text); - return NULL; + return nullptr; } /* initialize the buffer description */ @@ -319,6 +319,6 @@ const char *text_buffer_get_seqnum_line(text_buffer *text, UINT32 seqnum) UINT32 numlines = text_buffer_num_lines(text); UINT32 index = seqnum - text->linestartseq; if (index >= numlines) - return NULL; + return nullptr; return &text->buffer[text->lineoffs[(text->linestart + index) % text->linesize]]; } |