diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 16:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 20:17:31 +0200 |
commit | 84cbd6a5434e119613d677370e7657ea77cd7767 (patch) | |
tree | 9dd079b3e9eeea70a89718ad918c488583c96d6c /binaryurp/source/bridge.cxx | |
parent | 44786fad67cf48f6091e868cf0476e754650d385 (diff) |
clang-tidy modernize-use-emplace in b*
Change-Id: I51e0369ba2e1fe0b7c934531f71d3bda95ba09ec
Reviewed-on: https://gerrit.libreoffice.org/42109
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'binaryurp/source/bridge.cxx')
-rw-r--r-- | binaryurp/source/bridge.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx index 191ca4dc087f..9a02085b3182 100644 --- a/binaryurp/source/bridge.cxx +++ b/binaryurp/source/bridge.cxx @@ -622,10 +622,9 @@ void Bridge::sendRequestChangeRequest() { assert(mode_ == MODE_REQUESTED); random_ = random(); std::vector< BinaryAny > a; - a.push_back( - BinaryAny( + a.emplace_back( css::uno::TypeDescription(cppu::UnoType< sal_Int32 >::get()), - &random_)); + &random_); sendProtPropRequest(OutgoingRequest::KIND_REQUEST_CHANGE, a); } @@ -865,10 +864,9 @@ css::uno::Reference< css::uno::XInterface > Bridge::getInstance( css::uno::TypeDescription ifc(cppu::UnoType<css::uno::XInterface>::get()); typelib_TypeDescription * p = ifc.get(); std::vector< BinaryAny > inArgs; - inArgs.push_back( - BinaryAny( + inArgs.emplace_back( css::uno::TypeDescription(cppu::UnoType< css::uno::Type >::get()), - &p)); + &p); BinaryAny ret; std::vector< BinaryAny> outArgs; bool bExc = makeCall( |