summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-11 12:54:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-12 10:06:05 +0100
commitce83d1f448ae28f30c98a607a83ff3e012538d36 (patch)
treebfe3ace12a98eecf3e23e2cb6015e811c7efeaab /vcl/source/window
parent14d1f276b488b0a7cad107e3fb9612d96d4e764d (diff)
use preferred variant when window arg is null
Change-Id: I8fad194b6f147b40ecee6fff9fbbe947e7faa014 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112345 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/menuwindow.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/menuwindow.cxx b/vcl/source/window/menuwindow.cxx
index 2387d485fb13..fae4746a689e 100644
--- a/vcl/source/window/menuwindow.cxx
+++ b/vcl/source/window/menuwindow.cxx
@@ -99,9 +99,9 @@ bool MenuWindow::ImplHandleHelpEvent(vcl::Window* pMenuWindow, Menu const * pMen
aHelpId = OOO_HELP_INDEX;
if ( !aCommand.isEmpty() )
- pHelp->Start(aCommand, static_cast<vcl::Window*>(nullptr));
+ pHelp->Start(aCommand);
else
- pHelp->Start(OStringToOUString(aHelpId, RTL_TEXTENCODING_UTF8), static_cast<vcl::Window*>(nullptr));
+ pHelp->Start(OStringToOUString(aHelpId, RTL_TEXTENCODING_UTF8));
}
bDone = true;
}