diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-13 16:44:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-14 08:29:45 +0200 |
commit | c856ae17aff5db258eb16713f56fce9f28400d47 (patch) | |
tree | 5a02c77626257837c465212e1345c65334c72e37 /vcl/source/outdev | |
parent | 2d2259c848b43f9f04d5bb6073c00b8ae124534a (diff) |
clang-tidy modernize-use-emplace in vcl
Change-Id: Ie0a6d105b0167431275e628935df4f4c1a36d070
Reviewed-on: https://gerrit.libreoffice.org/42259
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/font.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/text.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 01bacb88f443..b7482c4ab677 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -697,7 +697,7 @@ void OutputDevice::AddFontSubstitute( const OUString& rFontName, void ImplDirectFontSubstitution::AddFontSubstitute( const OUString& rFontName, const OUString& rSubstFontName, AddFontSubstituteFlags nFlags ) { - maFontSubstList.push_back( ImplFontSubstEntry( rFontName, rSubstFontName, nFlags ) ); + maFontSubstList.emplace_back( rFontName, rSubstFontName, nFlags ); } ImplFontSubstEntry::ImplFontSubstEntry( const OUString& rFontName, diff --git a/vcl/source/outdev/text.cxx b/vcl/source/outdev/text.cxx index 658a7a157b53..0de51f0d3e2b 100644 --- a/vcl/source/outdev/text.cxx +++ b/vcl/source/outdev/text.cxx @@ -2530,7 +2530,7 @@ bool OutputDevice::GetTextOutlines( PolyPolyVector& rResultVector, rResultVector.reserve( aB2DPolyPolyVector.size() ); basegfx::B2DPolyPolygonVector::const_iterator aIt = aB2DPolyPolyVector.begin(); for(; aIt != aB2DPolyPolyVector.end(); ++aIt ) - rResultVector.push_back(tools::PolyPolygon(*aIt)); // #i76339# + rResultVector.emplace_back(*aIt); // #i76339# return true; } |