qtmain_win.cpp: Replace NULL with nullptr

Change-Id: I727a07a3c56c97cf6f18929b2440f49f0cbb860d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Yuhang Zhao 2019-02-01 20:09:35 +08:00
parent 6666201a02
commit fd1ebef13e

View File

@ -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;
}