diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 10:16:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 17:02:03 +0200 |
commit | 82c6652a7ae8761d187440794c695035f7c3d6ed (patch) | |
tree | 1d1d21d593bbfd787d67cc28fbb81e1a30edf66e /sc | |
parent | 69147d93066d13fc5231254441243ea1e1b5a8b6 (diff) |
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@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/cellsh.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/cellsh4.cxx | 7 |
2 files changed, 1 insertions, 8 deletions
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; |