summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 16:55:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-08 20:17:31 +0200
commit84cbd6a5434e119613d677370e7657ea77cd7767 (patch)
tree9dd079b3e9eeea70a89718ad918c488583c96d6c /basctl
parent44786fad67cf48f6091e868cf0476e754650d385 (diff)
clang-tidy modernize-use-emplace in b*
Change-Id: I51e0369ba2e1fe0b7c934531f71d3bda95ba09ec Reviewed-on: https://gerrit.libreoffice.org/42109 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basidesh.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index 8ef3742d6222..9464c03e5da0 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -314,7 +314,7 @@ void Shell::onDocumentClosed( const ScriptDocument& _rDocument )
pWin->BasicStopped();
}
else
- aDeleteVec.push_back( pWin );
+ aDeleteVec.emplace_back(pWin );
}
}
// delete windows outside main loop so we don't invalidate the original iterator
@@ -557,7 +557,7 @@ void Shell::CheckWindows()
{
BaseWindow* pWin = it->second;
if ( pWin->GetStatus() & BASWIN_TOBEKILLED )
- aDeleteVec.push_back( pWin );
+ aDeleteVec.emplace_back(pWin );
}
for ( VclPtr<BaseWindow> const & pWin : aDeleteVec )
{
@@ -579,7 +579,7 @@ void Shell::RemoveWindows( const ScriptDocument& rDocument, const OUString& rLib
{
BaseWindow* pWin = it->second;
if ( pWin->IsDocument( rDocument ) && pWin->GetLibName() == rLibName )
- aDeleteVec.push_back( pWin );
+ aDeleteVec.emplace_back(pWin );
}
for ( VclPtr<BaseWindow> const & pWin : aDeleteVec )
{
@@ -612,7 +612,7 @@ void Shell::UpdateWindows()
// Window is frozen at first, later the windows should be changed
// anyway to be marked as hidden instead of being deleted.
if ( !(pWin->GetStatus() & ( BASWIN_TOBEKILLED | BASWIN_RUNNINGBASIC | BASWIN_SUSPENDED ) ) )
- aDeleteVec.push_back( pWin );
+ aDeleteVec.emplace_back(pWin );
}
}
for ( auto it = aDeleteVec.begin(); it != aDeleteVec.end(); ++it )