From 084a230a15e22abada48f73d6e2efc66d208f933 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 5 Oct 2020 14:24:29 +0100 Subject: pRuntimeWindow is always a ScInputBarGroup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so the dynamic cast isn't needed Change-Id: I38d55ba782425383969a3da06df81c51a146a338 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104005 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sc/source/ui/app/inputwin.cxx | 6 +++--- sc/source/ui/inc/inputwin.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sc/source') diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 5255e17e3c31..62bcc1a6446b 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -148,7 +148,7 @@ SfxChildWinInfo ScInputWindowWrapper::GetInfo() const } -static VclPtr lcl_chooseRuntimeImpl( vcl::Window* pParent, const SfxBindings* pBind ) +static VclPtr lcl_chooseRuntimeImpl( vcl::Window* pParent, const SfxBindings* pBind ) { ScTabViewShell* pViewSh = nullptr; SfxDispatcher* pDisp = pBind->GetDispatcher(); @@ -494,7 +494,7 @@ void ScInputWindow::Resize() aTextWindow.Resize(); Size aSize = GetSizePixel(); aSize.setHeight(CalcWindowSizePixel().Height() + 1); - ScInputBarGroup* pGroupBar = dynamic_cast(pRuntimeWindow.get()); + ScInputBarGroup* pGroupBar = pRuntimeWindow.get(); if (pGroupBar) { // To ensure smooth display and prevent the items in the toolbar being @@ -745,7 +745,7 @@ void ScInputWindow::MouseMove( const MouseEvent& rMEvt ) { Point aPosPixel = GetPointerPosPixel(); - ScInputBarGroup* pGroupBar = dynamic_cast(pRuntimeWindow.get()); + ScInputBarGroup* pGroupBar = pRuntimeWindow.get(); if (bInResize || IsPointerAtResizePos()) SetPointer(PointerStyle::WindowSSize); diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx index 1fe62fedca21..63308fc97f3d 100644 --- a/sc/source/ui/inc/inputwin.hxx +++ b/sc/source/ui/inc/inputwin.hxx @@ -315,7 +315,7 @@ private: bool IsPointerAtResizePos(); VclPtr aWndPos; - VclPtr pRuntimeWindow; + VclPtr pRuntimeWindow; ScTextWndBase& aTextWindow; ScInputHandler* pInputHdl; ScTabViewShell* mpViewShell; -- cgit v1.2.3