summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-05 14:24:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-06 12:40:42 +0200
commit084a230a15e22abada48f73d6e2efc66d208f933 (patch)
tree10ff5a73a941ea8ec17b5732e14d4d29c079bc8d /sc/source/ui/app
parentaf4e5ee0f93c1ff442d08caed5c875f2b2c1fd43 (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>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/inputwin.cxx6
1 files changed, 3 insertions, 3 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);