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/MirandaG15/src/LCDFramework/misc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirandaG15/src/LCDFramework/misc.h') diff --git a/plugins/MirandaG15/src/LCDFramework/misc.h b/plugins/MirandaG15/src/LCDFramework/misc.h index c5f2bb4f06..0ff1a01668 100644 --- a/plugins/MirandaG15/src/LCDFramework/misc.h +++ b/plugins/MirandaG15/src/LCDFramework/misc.h @@ -52,7 +52,7 @@ inline std::string toNarrowString( const std::string& str ) } inline std::tstring toTstring( const wchar_t* p , int len=-1 ) { - return p == NULL?L"":((len < 0) ? p : std::wstring(p,len)); + return p == nullptr ?L"":((len < 0) ? p : std::wstring(p,len)); } extern tstring Utf8_Decode(const char *str); @@ -75,7 +75,7 @@ inline std::string toNarrowString( const std::string& str ) } inline std::tstring toTstring( const char* p , int len=-1 ) { - if(p == NULL) + if(p == nullptr) return ""; return (len < 0) ? p : std::string(p,len) ; } -- cgit v1.2.3