[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Oct 6 10:41:25 UTC 2020
sc/source/ui/app/inputwin.cxx | 6 +++---
sc/source/ui/inc/inputwin.hxx | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 084a230a15e22abada48f73d6e2efc66d208f933
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Oct 5 14:24:29 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Oct 6 12:40:42 2020 +0200
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list