diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-11 16:43:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-12 08:03:09 +0200 |
commit | 65e293f524437a548b6c099bbe6099b56957063c (patch) | |
tree | f058b4f61a6f046e71c45814e1a8c0fb749162a9 /postprocess | |
parent | baa5f32c21185025b64c01fc589c69961528b0c5 (diff) |
clang-tidy modernize-use-emplace in package..sax
Change-Id: Ibc0258fd79df987a0e295552bcc5bf89ee12007a
Reviewed-on: https://gerrit.libreoffice.org/42173
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'postprocess')
-rw-r--r-- | postprocess/qa/services.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/postprocess/qa/services.cxx b/postprocess/qa/services.cxx index 9616a4a1dc44..0ab677339d9d 100644 --- a/postprocess/qa/services.cxx +++ b/postprocess/qa/services.cxx @@ -126,11 +126,11 @@ void Test::test() { // ImplBorderWindow::ImplInit -> Window::ImplInit -> // WinSalInstance::CreateFrame -> ImplSendMessage -> SendMessageW): std::vector<OUString> blacklist; - blacklist.push_back("com.sun.star.comp.report.OReportDefinition"); + blacklist.emplace_back("com.sun.star.comp.report.OReportDefinition"); // <https://bugs.documentfoundation.org/show_bug.cgi?id=89343> // "~SwXMailMerge() goes into endless SwCache::Check()": - blacklist.push_back("SwXMailMerge"); + blacklist.emplace_back("SwXMailMerge"); css::uno::Reference<css::container::XContentEnumerationAccess> enumAcc( m_xContext->getServiceManager(), css::uno::UNO_QUERY_THROW); @@ -168,9 +168,8 @@ void Test::test() { css::uno::UNO_SET_THROW); std::vector<css::uno::Reference<css::lang::XServiceInfo>> serviceImpls2; while (serviceImpls1->hasMoreElements()) { - serviceImpls2.push_back( - css::uno::Reference<css::lang::XServiceInfo>( - serviceImpls1->nextElement(), css::uno::UNO_QUERY_THROW)); + serviceImpls2.emplace_back( + serviceImpls1->nextElement(), css::uno::UNO_QUERY_THROW); } css::uno::Reference<css::reflection::XServiceTypeDescription2> desc; if (typeMgr->hasByHierarchicalName(serviceNames[i])) { @@ -234,10 +233,9 @@ void Test::test() { ctors(desc->getConstructors()); for (sal_Int32 l = 0; l != ctors.getLength(); ++l) { if (!ctors[l]->getParameters().hasElements()) { - k->second.constructors.push_back( - Constructor( + k->second.constructors.emplace_back( serviceNames[i], - ctors[l]->isDefaultConstructor())); + ctors[l]->isDefaultConstructor()); break; } } |