qtmain_win.cpp: Replace NULL with nullptr
Change-Id: I727a07a3c56c97cf6f18929b2440f49f0cbb860d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
parent
6666201a02
commit
fd1ebef13e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user