[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 6 15:02:39 UTC 2021
sc/source/ui/inc/cellsh.hxx | 2 --
sc/source/ui/view/cellsh4.cxx | 7 +------
2 files changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 82c6652a7ae8761d187440794c695035f7c3d6ed
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 6 10:16:57 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Apr 6 17:02:03 2021 +0200
expand used-once ScCellShell::GetFrameWin method
Change-Id: Id6b9098a9c9cd26dfbdf6bdc418a02b744ff2ab4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113653
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/inc/cellsh.hxx b/sc/source/ui/inc/cellsh.hxx
index 4d2340033940..c298f6d05e5c 100644
--- a/sc/source/ui/inc/cellsh.hxx
+++ b/sc/source/ui/inc/cellsh.hxx
@@ -104,8 +104,6 @@ public:
void ExecutePageSel( SfxRequest& rReq );
void ExecuteMove( SfxRequest& rReq );
- const VclPtr<vcl::Window>& GetFrameWin() const;
-
static void GetStateCursor( SfxItemSet& rSet );
};
diff --git a/sc/source/ui/view/cellsh4.cxx b/sc/source/ui/view/cellsh4.cxx
index c77841eaa5fd..fb4b303e0833 100644
--- a/sc/source/ui/view/cellsh4.cxx
+++ b/sc/source/ui/view/cellsh4.cxx
@@ -28,11 +28,6 @@
#include <document.hxx>
#include <sc.hrc>
-const VclPtr<vcl::Window>& ScCellShell::GetFrameWin() const
-{
- return pFrameWin;
-}
-
void ScCellShell::ExecuteCursor( SfxRequest& rReq )
{
ScViewData& rData = GetViewData();
@@ -125,7 +120,7 @@ void ScCellShell::ExecuteCursor( SfxRequest& rReq )
// If ScrollLock key is active, cell cursor stays on the current cell while
// scrolling the grid.
bool bScrollLock = false;
- KeyIndicatorState eState = GetFrameWin()->GetIndicatorState();
+ KeyIndicatorState eState = pFrameWin->GetIndicatorState();
if (eState & KeyIndicatorState::SCROLLLOCK)
bScrollLock = true;
More information about the Libreoffice-commits
mailing list