diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-08 16:11:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-09 12:26:56 +0100 |
commit | 7c19dff94e7ce99ce2fc702ea69032c21212a80f (patch) | |
tree | 8ffebe85622e6e01103d0cc60d7fc2300f540a7c /sc/source/ui/miscdlgs/anyrefdg.cxx | |
parent | 65d2d2647ead42e5bbb7800f14c047f383fe450b (diff) |
loplugin:singlevalfields in sc
Change-Id: I7b87680b9d76bb390a0657f5f1783c3a7c9edbc4
Reviewed-on: https://gerrit.libreoffice.org/63127
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/miscdlgs/anyrefdg.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/anyrefdg.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx index 56efb1cac9d7..54a0be8869b8 100644 --- a/sc/source/ui/miscdlgs/anyrefdg.cxx +++ b/sc/source/ui/miscdlgs/anyrefdg.cxx @@ -754,11 +754,9 @@ ScRefHandler::ScRefHandler( vcl::Window &rWindow, SfxBindings* pB, bool bBindRef m_rWindow( &rWindow ), m_bInRefMode( false ), m_aHelper(this,pB), - m_pMyBindings( pB ), - m_pActiveWin(nullptr) + m_pMyBindings( pB ) { m_aHelper.SetWindow(m_rWindow.get()); - m_aIdle.SetInvokeHandler(LINK( this, ScRefHandler, UpdateFocusHdl)); if( bBindRef ) EnterRefMode(); } @@ -821,7 +819,6 @@ ScRefHandler::~ScRefHandler() void ScRefHandler::disposeRefHandler() { m_rWindow.clear(); - m_pActiveWin.clear(); LeaveRefMode(); m_aHelper.dispose(); } @@ -932,14 +929,6 @@ void ScRefHandler::ToggleCollapsed( formula::RefEdit* pEdit, formula::RefButton* m_aHelper.ToggleCollapsed( pEdit, pButton ); } -IMPL_LINK_NOARG(ScRefHandler, UpdateFocusHdl, Timer *, void) -{ - if (m_pActiveWin) - { - m_pActiveWin->GrabFocus(); - } -} - bool ScRefHandler::ParseWithNames( ScRangeList& rRanges, const OUString& rStr, const ScDocument* pDoc ) { return m_aHelper.ParseWithNames( rRanges, rStr, pDoc ); |