summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/basidesh.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 13:54:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 13:46:14 +0200
commit616d47dbbea2ee39e1936e987b26a0d2095f0906 (patch)
tree1e88d50936ff65ffc769793dd16c97356c249bdb /basctl/source/basicide/basidesh.cxx
parentf453d2b0c7f27211d9c9061aa5c522cda37e37c6 (diff)
loplugin:virtualdead in basctl
Change-Id: I6a3f74a3c52f3fb97b26de69b20ffd7502968d5e Reviewed-on: https://gerrit.libreoffice.org/79646 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl/source/basicide/basidesh.cxx')
-rw-r--r--basctl/source/basicide/basidesh.cxx20
1 files changed, 2 insertions, 18 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index e86a03ef5ac9..01d5f4a1d199 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -397,24 +397,8 @@ bool Shell::PrepareClose( bool bUI )
}
else
{
- bool bCanClose = true;
- for (auto const& window : aWindowTable)
- {
- BaseWindow* pWin = window.second;
- if ( !pWin->CanClose() )
- {
- if ( !m_aCurLibName.isEmpty() && ( pWin->IsDocument( m_aCurDocument ) || pWin->GetLibName() != m_aCurLibName ) )
- SetCurLib( ScriptDocument::getApplicationScriptDocument(), OUString(), false );
- SetCurWindow( pWin, true );
- bCanClose = false;
- break;
- }
- }
-
- if ( bCanClose )
- StoreAllWindowData( false ); // don't write on the disk, that will be done later automatically
-
- return bCanClose;
+ StoreAllWindowData( false ); // don't write on the disk, that will be done later automatically
+ return true;
}
}