summaryrefslogtreecommitdiffstats
path: root/src/winmain
diff options
context:
space:
mode:
Diffstat (limited to 'src/winmain')
-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;
}