From fd1ebef13e9d0ebb82f1994eed264b849e3be9e9 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Fri, 1 Feb 2019 20:09:35 +0800 Subject: qtmain_win.cpp: Replace NULL with nullptr Change-Id: I727a07a3c56c97cf6f18929b2440f49f0cbb860d Reviewed-by: Friedemann Kleint --- src/winmain/qtmain_win.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/winmain/qtmain_win.cpp b/src/winmain/qtmain_win.cpp index 3dc1ac0fba..752fba1d5a 100644 --- a/src/winmain/qtmain_win.cpp +++ b/src/winmain/qtmain_win.cpp @@ -84,9 +84,9 @@ extern "C" int main(int, char **); // when passed CP_ACP. static inline char *wideToMulti(int codePage, const wchar_t *aw) { - const int required = WideCharToMultiByte(codePage, 0, aw, -1, NULL, 0, NULL, NULL); + const int required = WideCharToMultiByte(codePage, 0, aw, -1, nullptr, 0, nullptr, nullptr); char *result = new char[required]; - WideCharToMultiByte(codePage, 0, aw, -1, result, required, NULL, NULL); + WideCharToMultiByte(codePage, 0, aw, -1, result, required, nullptr, nullptr); return result; } -- cgit v1.2.3