summaryrefslogtreecommitdiff
path: root/desktop/win32/source/loader.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 16:57:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-16 14:19:22 +0000
commit08abfef116d893d6a062d432ff89e7af8b7b679d (patch)
treedc6f12f1669b40651a42b7a0556e264bc607a42b /desktop/win32/source/loader.cxx
parent1f9b6013e507ee4acb9374cee909f59139d52978 (diff)
clang-cl loplugin: desktop
Change-Id: If2f5bfa6c05098c5362cd6c7b546520dc01ee821 Reviewed-on: https://gerrit.libreoffice.org/29871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop/win32/source/loader.cxx')
-rw-r--r--desktop/win32/source/loader.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/win32/source/loader.cxx b/desktop/win32/source/loader.cxx
index 95327fcdbfad..948d370987b5 100644
--- a/desktop/win32/source/loader.cxx
+++ b/desktop/win32/source/loader.cxx
@@ -36,12 +36,12 @@
namespace desktop_win32 {
void getPaths(WCHAR * binPath, WCHAR * iniDirectory) {
- if (!GetModuleFileNameW(NULL, iniDirectory, MAX_PATH)) {
- LPWSTR buf = NULL;
+ if (!GetModuleFileNameW(nullptr, iniDirectory, MAX_PATH)) {
+ LPWSTR buf = nullptr;
FormatMessageW(
- FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL,
- GetLastError(), 0, reinterpret_cast< LPWSTR >(&buf), 0, NULL);
- MessageBoxW(NULL, buf, NULL, MB_OK | MB_ICONERROR);
+ FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, nullptr,
+ GetLastError(), 0, reinterpret_cast< LPWSTR >(&buf), 0, nullptr);
+ MessageBoxW(nullptr, buf, nullptr, MB_OK | MB_ICONERROR);
LocalFree(buf);
TerminateProcess(GetCurrentProcess(), 255);
}