summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/ui/dlg/ConnectionHelper.cxx2
-rw-r--r--desktop/win32/source/loader.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index 1e7bbf1f7a9a..f5a41a5d701f 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -273,7 +273,7 @@ namespace dbaui
{
OUString sOldDataSource=getURLNoPrefix();
OUString sNewDataSource;
- HWND hWnd = 0;
+ HWND hWnd = nullptr;
weld::Window* pDialog = GetFrameWeld();
css::uno::Reference<css::awt::XSystemDependentWindowPeer> xSysDepWin(pDialog->GetXWindow(), css::uno::UNO_QUERY);
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));
}