diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 16:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 20:17:31 +0200 |
commit | 84cbd6a5434e119613d677370e7657ea77cd7767 (patch) | |
tree | 9dd079b3e9eeea70a89718ad918c488583c96d6c /basic/source/classes/sb.cxx | |
parent | 44786fad67cf48f6091e868cf0476e754650d385 (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 'basic/source/classes/sb.cxx')
-rw-r--r-- | basic/source/classes/sb.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 810eaaaf2e56..1614c12bda53 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -1064,7 +1064,7 @@ SbModule* StarBASIC::MakeModule( const OUString& rName, const ModuleInfo& mInfo, } p->SetSource32( rSrc ); p->SetParent( this ); - pModules.push_back(p); + pModules.emplace_back(p); SetModified( true ); return p; } @@ -1073,7 +1073,7 @@ void StarBASIC::Insert( SbxVariable* pVar ) { if( dynamic_cast<const SbModule*>(pVar) != nullptr) { - pModules.push_back(static_cast<SbModule*>(pVar)); + pModules.emplace_back(static_cast<SbModule*>(pVar)); pVar->SetParent( this ); StartListening( pVar->GetBroadcaster(), true ); } @@ -1862,7 +1862,7 @@ bool StarBASIC::LoadData( SvStream& r, sal_uInt16 nVer ) else { pMod->SetParent( this ); - pModules.push_back( pMod ); + pModules.emplace_back(pMod ); } } // HACK for SFX-Bullshit! |