diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-21 13:09:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-21 17:29:53 +0200 |
commit | 80fab1529a5680fcad4075e4363924cfb2f7213a (patch) | |
tree | 60147560144b42893c837b591c72ff2bf132f89b /bridges/source/cpp_uno | |
parent | 685eff8c9e6e6097b6f9e365fd6554e10adef063 (diff) |
clang-tidy modernize-pass-by-value in bridges
Change-Id: I6c52316e46117aacb22a2adcb75841aed834041f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134705
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bridges/source/cpp_uno')
-rw-r--r-- | bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx | 5 | ||||
-rw-r--r-- | bridges/source/cpp_uno/shared/unointerfaceproxy.cxx | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx index e4ee7800a385..dad1ad8f7ac6 100644 --- a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx +++ b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx @@ -20,6 +20,7 @@ #include <cppinterfaceproxy.hxx> #include <bridge.hxx> +#include <utility> #include <vtablefactory.hxx> #include <com/sun/star/uno/XInterface.hpp> @@ -102,12 +103,12 @@ void CppInterfaceProxy::releaseProxy() CppInterfaceProxy::CppInterfaceProxy( bridges::cpp_uno::shared::Bridge * pBridge_, uno_Interface * pUnoI_, - typelib_InterfaceTypeDescription * pTypeDescr_, OUString const & rOId_) + typelib_InterfaceTypeDescription * pTypeDescr_, OUString aOId_) : nRef( 1 ) , pBridge( pBridge_ ) , pUnoI( pUnoI_ ) , pTypeDescr( pTypeDescr_ ) - , oid( rOId_ ) + , oid(std::move( aOId_ )) { pBridge->acquire(); ::typelib_typedescription_acquire( &pTypeDescr->aBase ); diff --git a/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx b/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx index 91578e9999d1..3c03c1cffc0f 100644 --- a/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx +++ b/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx @@ -22,6 +22,7 @@ #include <bridge.hxx> #include <com/sun/star/uno/XInterface.hpp> +#include <utility> #include <typelib/typedescription.h> #include <uno/dispatcher.h> @@ -93,12 +94,12 @@ UnoInterfaceProxy * UnoInterfaceProxy::create( UnoInterfaceProxy::UnoInterfaceProxy( bridges::cpp_uno::shared::Bridge * pBridge_, com::sun::star::uno::XInterface * pCppI_, - typelib_InterfaceTypeDescription * pTypeDescr_, OUString const & rOId_) + typelib_InterfaceTypeDescription * pTypeDescr_, OUString aOId_) : nRef( 1 ) , pBridge( pBridge_ ) , pCppI( pCppI_ ) , pTypeDescr( pTypeDescr_ ) - , oid( rOId_ ) + , oid(std::move( aOId_ )) { pBridge->acquire(); ::typelib_typedescription_acquire(&pTypeDescr->aBase); |