summaryrefslogtreecommitdiff
path: root/desktop/win32/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 10:00:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 13:19:37 +0200
commit4da2ad58a6460cec4324431f0bf301de1603b748 (patch)
tree70ce8e4c79115c5017e47dc277b527da83e3a6b1 /desktop/win32/source
parent664de5a816bdcb68ada087f99ef5a76139890fdf (diff)
loplugin:nullptr (clang-cl)
Change-Id: I9a9262a236d4257da6f65ee6b0cafbc5522c8a66 Reviewed-on: https://gerrit.libreoffice.org/79917 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop/win32/source')
-rw-r--r--desktop/win32/source/loader.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/win32/source/loader.cxx b/desktop/win32/source/loader.cxx
index 6eab8ddaf24a..40cef9e3fd4f 100644
--- a/desktop/win32/source/loader.cxx
+++ b/desktop/win32/source/loader.cxx
@@ -191,7 +191,7 @@ int officeloader_impl(bool bAllowConsole)
}
// create a Windows JobObject with a memory limit
- HANDLE hJobObject = NULL;
+ HANDLE hJobObject = nullptr;
if (nMaxMemoryInMB > 0)
{
JOBOBJECT_EXTENDED_LIMIT_INFORMATION aJobLimit;
@@ -199,8 +199,8 @@ int officeloader_impl(bool bAllowConsole)
if (bExcludeChildProcesses)
aJobLimit.BasicLimitInformation.LimitFlags |= JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK;
aJobLimit.JobMemoryLimit = nMaxMemoryInMB * 1024 * 1024;
- hJobObject = CreateJobObjectW(NULL, NULL);
- if (hJobObject != NULL)
+ hJobObject = CreateJobObjectW(nullptr, nullptr);
+ if (hJobObject != nullptr)
SetInformationJobObject(hJobObject, JobObjectExtendedLimitInformation, &aJobLimit,
sizeof(JOBOBJECT_EXTENDED_LIMIT_INFORMATION));
}