diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-10 15:26:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-11 07:00:18 +0000 |
commit | f31d98f63c4ad11897e0a961fb378fdf7989f4d3 (patch) | |
tree | d54843c13bef0cd2b9b7a5e234e3df0d2b7f8a6d /basctl | |
parent | 22d0d2455f9aa699fac95c450da725c603333132 (diff) |
loplugin:expandablemethods in avmedia..canvas
Change-Id: Ic230f1ef6b1dbe796ac7862a1a7e6a718f9e4e54
Reviewed-on: https://gerrit.libreoffice.org/30753
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 7 | ||||
-rw-r--r-- | basctl/source/basicide/baside2.hxx | 2 | ||||
-rw-r--r-- | basctl/source/basicide/basidesh.cxx | 7 | ||||
-rw-r--r-- | basctl/source/inc/basidesh.hxx | 2 |
4 files changed, 2 insertions, 16 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index 0afd147228dc..fdd837ecbccc 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -592,7 +592,7 @@ void ModulWindow::ManageBreakPoints() bool ModulWindow::BasicErrorHdl( StarBASIC * pBasic ) { - GoOnTop(); + GetShell()->GetViewFrame()->ToTop(); // ReturnWert: BOOL // FALSE: cancel @@ -1152,11 +1152,6 @@ bool ModulWindow::IsModified() return GetEditEngine() && GetEditEngine()->IsModified(); } -void ModulWindow::GoOnTop() -{ - GetShell()->GetViewFrame()->ToTop(); -} - OUString ModulWindow::GetSbModuleName() { OUString aModuleName; diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 6770ffbdf9a2..e631d8ee8987 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -310,8 +310,6 @@ private: void CheckCompileBasic(); void BasicExecute(); - static void GoOnTop(); - sal_Int32 FormatAndPrint( Printer* pPrinter, sal_Int32 nPage ); SbModuleRef const & XModule(); protected: diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index e24794bf7a37..bcbbf46358fd 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -671,7 +671,7 @@ void Shell::UpdateWindows() { StarBASIC* pLib = doc->getBasicManager()->GetLib( aLibName ); if ( pLib ) - ImplStartListening( pLib ); + StartListening( pLib->GetBroadcaster(), true /* log on only once */ ); try { @@ -913,11 +913,6 @@ void Shell::SetCurLibForLocalization( const ScriptDocument& rDocument, const OUS m_pCurLocalizationMgr->handleTranslationbar(); } -void Shell::ImplStartListening( StarBASIC* pBasic ) -{ - StartListening( pBasic->GetBroadcaster(), true /* log on only once */ ); -} - } // namespace basctl /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index d6acd5c5578c..aa41e8bba462 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -99,8 +99,6 @@ private: void SetCurLib( const ScriptDocument& rDocument, const OUString& aLibName, bool bUpdateWindows = true , bool bCheck = true ); void SetCurLibForLocalization( const ScriptDocument& rDocument, const OUString& aLibName ); - void ImplStartListening( StarBASIC* pBasic ); - DECL_LINK( TabBarHdl, ::TabBar*, void ); static unsigned nShellCount; |