diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-10-05 14:24:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-10-06 12:40:42 +0200 |
commit | 084a230a15e22abada48f73d6e2efc66d208f933 (patch) | |
tree | 10ff5a73a941ea8ec17b5732e14d4d29c079bc8d | |
parent | af4e5ee0f93c1ff442d08caed5c875f2b2c1fd43 (diff) |
pRuntimeWindow is always a ScInputBarGroup
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 <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/inc/inputwin.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
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<ScTextWndBase> lcl_chooseRuntimeImpl( vcl::Window* pParent, const SfxBindings* pBind ) +static VclPtr<ScInputBarGroup> 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<ScInputBarGroup*>(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<ScInputBarGroup*>(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<ScPosWnd> aWndPos; - VclPtr<ScTextWndBase> pRuntimeWindow; + VclPtr<ScInputBarGroup> pRuntimeWindow; ScTextWndBase& aTextWindow; ScInputHandler* pInputHdl; ScTabViewShell* mpViewShell; |