summaryrefslogtreecommitdiff
path: root/ucbhelper
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 /ucbhelper
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 'ucbhelper')
-rw-r--r--ucbhelper/source/client/proxydecider.cxx7
-rw-r--r--ucbhelper/source/provider/providerhelper.cxx5
2 files changed, 4 insertions, 8 deletions
diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx
index 4f7f23be7ac3..542aee23571d 100644
--- a/ucbhelper/source/client/proxydecider.cxx
+++ b/ucbhelper/source/client/proxydecider.cxx
@@ -734,11 +734,8 @@ void InternetProxyDecider_Impl::setNoProxyList(
}
}
- m_aNoProxyList.push_back(
- NoProxyListEntry( WildCard( aToken ),
- WildCard(
- aFullyQualifiedHost
- .makeStringAndClear() ) ) );
+ m_aNoProxyList.emplace_back( WildCard( aToken ),
+ WildCard( aFullyQualifiedHost.makeStringAndClear() ) );
}
if ( nEnd != nLen )
diff --git a/ucbhelper/source/provider/providerhelper.cxx b/ucbhelper/source/provider/providerhelper.cxx
index 83029db18668..841e81bd73ff 100644
--- a/ucbhelper/source/provider/providerhelper.cxx
+++ b/ucbhelper/source/provider/providerhelper.cxx
@@ -205,9 +205,8 @@ void ContentProviderImplHelper::queryExistingContents(
uno::Reference< ucb::XContent > xContent( (*it).second );
if ( xContent.is() )
{
- rContents.push_back(
- rtl::Reference< ContentImplHelper >(
- static_cast< ContentImplHelper * >( xContent.get() ) ) );
+ rContents.emplace_back(
+ static_cast< ContentImplHelper * >( xContent.get() ) );
}
++it;
}