summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2019-02-01 20:09:35 +0800
committerYuhang Zhao <2546789017@qq.com>2019-02-03 06:43:34 +0000
commitfd1ebef13e9d0ebb82f1994eed264b849e3be9e9 (patch)
tree5f6a7b025d3178928cb43f7559607242bd55c5a9 /src
parent6666201a02817431f10c5a39c745fe31278bd612 (diff)
qtmain_win.cpp: Replace NULL with nullptr
Change-Id: I727a07a3c56c97cf6f18929b2440f49f0cbb860d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/winmain/qtmain_win.cpp4
1 files 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;
}