From 84cbd6a5434e119613d677370e7657ea77cd7767 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Sep 2017 16:55:09 +0200 Subject: clang-tidy modernize-use-emplace in b* Change-Id: I51e0369ba2e1fe0b7c934531f71d3bda95ba09ec Reviewed-on: https://gerrit.libreoffice.org/42109 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basic/source/classes/sb.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'basic/source/classes/sb.cxx') 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(pVar) != nullptr) { - pModules.push_back(static_cast(pVar)); + pModules.emplace_back(static_cast(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! -- cgit