summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-13 16:43:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-14 08:29:11 +0200
commit2d2259c848b43f9f04d5bb6073c00b8ae124534a (patch)
tree28a3d6274bcb2ffa5b7c55c519fc07b4f2cfacc3 /unotools
parentb0b0aef18fff981fa1f4a1539c150260cc526595 (diff)
clang-tidy modernize-use-emplace in test..vbahelper
Change-Id: Ifbe1dd7c9d5dde33f7419548670434591b1a1d82 Reviewed-on: https://gerrit.libreoffice.org/42258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/fontcfg.cxx2
-rw-r--r--unotools/source/misc/eventlisteneradapter.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index 84f48885e7af..e09a03f058a2 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -1084,7 +1084,7 @@ const FontNameAttr* FontSubstConfiguration::getSubstInfo( const OUString& rFontN
::std::vector< OUString > aFallbacks( aLanguageTag.getFallbackStrings( true));
if (aLanguageTag.getLanguage() != "en")
- aFallbacks.push_back("en");
+ aFallbacks.emplace_back("en");
for (::std::vector< OUString >::const_iterator fb( aFallbacks.begin()); fb != aFallbacks.end(); ++fb)
{
diff --git a/unotools/source/misc/eventlisteneradapter.cxx b/unotools/source/misc/eventlisteneradapter.cxx
index 07a24d88705a..1a952a121532 100644
--- a/unotools/source/misc/eventlisteneradapter.cxx
+++ b/unotools/source/misc/eventlisteneradapter.cxx
@@ -146,7 +146,7 @@ namespace utl
}
OEventListenerImpl* pListenerImpl = new OEventListenerImpl(this, _rxComp);
- m_pImpl->aListeners.push_back(pListenerImpl);
+ m_pImpl->aListeners.emplace_back(pListenerImpl);
}
} // namespace utl