From c92d8866af8f115c0a43786abda7f08c53999a3a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Mar 2016 11:06:31 +0200 Subject: loplugin:constantparam in basctl Change-Id: I08ab924a9bb69bede4247cfe8c50921520a4f4a7 --- basctl/source/basicide/basides1.cxx | 2 +- basctl/source/basicide/basidesh.cxx | 4 ++-- basctl/source/inc/basidesh.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 9e412f8089c3..b4b509046370 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -467,7 +467,7 @@ void Shell::ExecuteGlobal( SfxRequest& rReq ) { if ( m_aCurLibName.isEmpty() || ( aDocument == m_aCurDocument && aLibName == m_aCurLibName ) ) { - RemoveWindows( aDocument, aLibName, true ); + RemoveWindows( aDocument, aLibName ); if ( aDocument == m_aCurDocument && aLibName == m_aCurLibName ) { m_aCurDocument = ScriptDocument::getApplicationScriptDocument(); diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index 54c92e6d6ee8..18ff4da83c30 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -575,7 +575,7 @@ void Shell::CheckWindows() } -void Shell::RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName, bool bDestroy ) +void Shell::RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName ) { bool bChangeCurWindow = pCurWin; std::vector > aDeleteVec; @@ -591,7 +591,7 @@ void Shell::RemoveWindows( const ScriptDocument& rDocument, const OUString& rLib if ( pWin == pCurWin ) bChangeCurWindow = true; pWin->StoreData(); - RemoveWindow( pWin, bDestroy, false ); + RemoveWindow( pWin, true/*bDestroy*/, false ); } if ( bChangeCurWindow ) SetCurWindow( FindApplicationWindow(), true ); diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index 46b0b4017085..1fb6dd8e884b 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -93,7 +93,7 @@ private: void InitTabBar(); void InitScrollBars(); void CheckWindows(); - void RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName, bool bDestroy ); + void RemoveWindows( const ScriptDocument& rDocument, const OUString& rLibName ); void UpdateWindows(); static void InvalidateBasicIDESlots(); void StoreAllWindowData( bool bPersistent = true ); -- cgit