From 4da2ad58a6460cec4324431f0bf301de1603b748 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 1 Oct 2019 10:00:24 +0200 Subject: loplugin:nullptr (clang-cl) Change-Id: I9a9262a236d4257da6f65ee6b0cafbc5522c8a66 Reviewed-on: https://gerrit.libreoffice.org/79917 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- desktop/win32/source/loader.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop/win32/source/loader.cxx') 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)); } -- cgit