diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-22 12:38:51 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-10-22 13:12:36 +0200 |
commit | 93947341acb91c7ad508d1de72f5705f730d8e93 (patch) | |
tree | 6a6b1918c0223659e764913ee82de4465c594293 /vcl/unx/generic/fontmanager | |
parent | 3bf3cae9b7b4d38e0427d71a2b34629fd5988af7 (diff) |
Fix 3bf3cae9b7b4d38e0427d71a2b34629fd5988af7
wrong use of emplace_back, it should be push_back here
Change-Id: I729820336f4aedbebb94ce8311c8fb62aba74e92
Reviewed-on: https://gerrit.libreoffice.org/43688
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/unx/generic/fontmanager')
-rw-r--r-- | vcl/unx/generic/fontmanager/fontmanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index 2c298340e3c9..dd0cfb7dc42a 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -556,10 +556,10 @@ void PrintFontManager::analyzeSfntFamilyName( void* pTTFont, ::std::vector< OUSt DisposeNameRecords( pNameRecords, nNameRecords ); if( !aFamily.isEmpty() ) { - rNames.emplace_back( aFamily ); + rNames.push_back( aFamily ); for (auto const& elem : aSet) if( elem != aFamily ) - rNames.emplace_back(elem); + rNames.push_back(elem); } } @@ -783,7 +783,7 @@ void PrintFontManager::getFontList( ::std::vector< fontID >& rFontIDs ) std::unordered_map< fontID, PrintFont* >::const_iterator it; for (auto const& font : m_aFonts) - rFontIDs.emplace_back(font.first); + rFontIDs.push_back(font.first); } void PrintFontManager::fillPrintFontInfo(PrintFont* pFont, FastPrintFontInfo& rInfo) |