From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- plugins/NewAwaySysMod/src/CString.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/NewAwaySysMod/src/CString.h') diff --git a/plugins/NewAwaySysMod/src/CString.h b/plugins/NewAwaySysMod/src/CString.h index decedaaac7..22cb0dd4c3 100644 --- a/plugins/NewAwaySysMod/src/CString.h +++ b/plugins/NewAwaySysMod/src/CString.h @@ -45,9 +45,9 @@ template class TString { public: - TString(): pBuf(NULL), nBufSize(0), nAllocSize(0) {} - TString(const T *pStr): pBuf(NULL), nBufSize(0), nAllocSize(0) {*this = pStr;} - TString(const TString &Str): pBuf(NULL), nBufSize(0), nAllocSize(0) {*this = Str.pBuf;} + TString(): pBuf(nullptr), nBufSize(0), nAllocSize(0) {} + TString(const T *pStr): pBuf(nullptr), nBufSize(0), nAllocSize(0) {*this = pStr;} + TString(const TString &Str): pBuf(nullptr), nBufSize(0), nAllocSize(0) {*this = Str.pBuf;} ~TString() {Free();} int GetLen() const {return (nBufSize) ? (nBufSize - 1) : 0;}; @@ -183,7 +183,7 @@ private: class UTF8DecodeA { public: - UTF8DecodeA(const char *str) { p = mir_strdup(str); mir_utf8decode(p, NULL); } + UTF8DecodeA(const char *str) { p = mir_strdup(str); mir_utf8decode(p, nullptr); } ~UTF8DecodeA() { mir_free(p); } operator char*() { return p; } -- cgit v1.2.3