diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-31 12:05:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 11:51:44 +0200 |
commit | b0de7bc428aaf914a836da3c33b123e4195e603e (patch) | |
tree | b5d83694bab8f9958281f9b382b2d5731d8f7263 /xmlhelp | |
parent | 5d5ac2fd9e8fe4781d6175eb58b949ba9c25d564 (diff) |
clang-tidy modernize-use-emplace in various
Change-Id: Id1bbd3f380c17beeaab11f7140d4df1304c3d0d8
Reviewed-on: https://gerrit.libreoffice.org/41750
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 1c263ec7c306..4546d3b950de 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -621,7 +621,7 @@ void KeywordInfo::KeywordElement::init( Databases const *pDatabases,helpdatafile else { id.push_back( ids.copy( k, idx-k ) ); - anchor.push_back( OUString() ); + anchor.emplace_back( ); } } @@ -768,10 +768,10 @@ KeywordInfo* Databases::getKeyword( const OUString& Database, if( !bBelongsToDatabase ) continue; - aVector.push_back( KeywordInfo::KeywordElement( this, + aVector.emplace_back( this, pHdf, keyword, - doclist ) ); + doclist ); } aHdf.stopIteration(); |