diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-14 10:20:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-14 10:24:47 +0200 |
commit | b8eb2946511ce617323b13dffe2b1d9704e0be60 (patch) | |
tree | d5aa4f91e75d654a1cdfcd75f26dd4b813a73ff7 /binaryurp | |
parent | d8644c8edb405abd9d71e62e43e898c1d2a28fd2 (diff) |
loplugin:passstuffbyref in various
Change-Id: I80070c83204e531c2f599f8a56193d6ffe0e5022
Diffstat (limited to 'binaryurp')
-rw-r--r-- | binaryurp/source/bridge.cxx | 2 | ||||
-rw-r--r-- | binaryurp/source/bridge.hxx | 4 | ||||
-rw-r--r-- | binaryurp/source/proxy.hxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx index 6298351bdab0..1bfdd17def98 100644 --- a/binaryurp/source/bridge.cxx +++ b/binaryurp/source/bridge.cxx @@ -104,7 +104,7 @@ public: ~AttachThread(); - rtl::ByteSequence getTid() throw () { return tid_;} + const rtl::ByteSequence& getTid() throw () { return tid_;} private: AttachThread(const AttachThread&) = delete; diff --git a/binaryurp/source/bridge.hxx b/binaryurp/source/bridge.hxx index c89e85b0919a..7c148756704d 100644 --- a/binaryurp/source/bridge.hxx +++ b/binaryurp/source/bridge.hxx @@ -88,10 +88,10 @@ public: // thread: void terminate(bool final); - com::sun::star::uno::Reference< com::sun::star::connection::XConnection > + const com::sun::star::uno::Reference< com::sun::star::connection::XConnection >& getConnection() const { return connection_;} - com::sun::star::uno::Reference< com::sun::star::bridge::XInstanceProvider > + const com::sun::star::uno::Reference< com::sun::star::bridge::XInstanceProvider >& getProvider() const { return provider_;} com::sun::star::uno::Mapping & getCppToBinaryMapping() { return cppToBinaryMapping_;} diff --git a/binaryurp/source/proxy.hxx b/binaryurp/source/proxy.hxx index 7f90f116c137..5ad8cee120dc 100644 --- a/binaryurp/source/proxy.hxx +++ b/binaryurp/source/proxy.hxx @@ -43,9 +43,9 @@ public: rtl::Reference< Bridge > const & bridge, OUString const & oid, com::sun::star::uno::TypeDescription const & type); - OUString getOid() const { return oid_;} + const OUString& getOid() const { return oid_;} - com::sun::star::uno::TypeDescription getType() const { return type_;} + const com::sun::star::uno::TypeDescription& getType() const { return type_;} void do_acquire(); |