diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-13 10:42:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-13 13:27:51 +0200 |
commit | ef268562602a4bef0e128f95beaef9732ac00c7d (patch) | |
tree | b36a4a773a86c84833a48f7eeec50dc3e76b0729 /connectivity/source/drivers | |
parent | 216ffb038f4a2f43286d96b83a64346a2351c8c1 (diff) |
loplugin:passstuffbyref in connectivity
Change-Id: I751977ecc1b532f72dd5673767471cb0a2cdbd06
Diffstat (limited to 'connectivity/source/drivers')
5 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/firebird/Connection.hxx b/connectivity/source/drivers/firebird/Connection.hxx index 29784ddc55be..37c5b83bc3f8 100644 --- a/connectivity/source/drivers/firebird/Connection.hxx +++ b/connectivity/source/drivers/firebird/Connection.hxx @@ -177,7 +177,7 @@ namespace connectivity css::uno::RuntimeException, std::exception); - ::rtl::OUString getConnectionURL() const {return m_sConnectionURL;} + const OUString& getConnectionURL() const {return m_sConnectionURL;} bool isEmbedded() const {return m_bIsEmbedded;} isc_db_handle& getDBHandle() {return m_aDBHandle;} isc_tr_handle& getTransaction() diff --git a/connectivity/source/drivers/mork/MDriver.hxx b/connectivity/source/drivers/mork/MDriver.hxx index 198909194ec9..d9265799b5e9 100644 --- a/connectivity/source/drivers/mork/MDriver.hxx +++ b/connectivity/source/drivers/mork/MDriver.hxx @@ -39,8 +39,8 @@ public: static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw (css::uno::RuntimeException); - css::uno::Reference< com::sun::star::lang::XMultiServiceFactory > getFactory(){return m_xFactory;} - OUString getProfilePath() {return m_sProfilePath;} + const css::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& getFactory(){return m_xFactory;} + const OUString& getProfilePath() {return m_sProfilePath;} private: MorkDriver(const MorkDriver&) = delete; diff --git a/connectivity/source/drivers/mork/MTable.hxx b/connectivity/source/drivers/mork/MTable.hxx index 7e50743192be..1008eb62f3f8 100644 --- a/connectivity/source/drivers/mork/MTable.hxx +++ b/connectivity/source/drivers/mork/MTable.hxx @@ -44,8 +44,8 @@ namespace connectivity static bool isReadOnly() { return false; } - OUString getTableName() const { return m_Name; } - OUString getSchema() const { return m_SchemaName; } + const OUString& getTableName() const { return m_Name; } + const OUString& getSchema() const { return m_SchemaName; } // OTableHelper overridables virtual sdbcx::OCollection* createColumns( const TStringVector& _rNames ) override; diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx index 92f45cb2237c..0655e528bd4d 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx @@ -34,7 +34,7 @@ namespace connectivity profileName = aProfileName; profilePath = aProfilePath; } - OUString ProfileStruct::getProfilePath() + const OUString& ProfileStruct::getProfilePath() { return profilePath; } diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx index 3f9ad6980268..585cf24eb881 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.hxx @@ -49,8 +49,8 @@ namespace connectivity public: ProfileStruct(MozillaProductType aProduct, const OUString& aProfileName, const OUString &aProfilePath); - OUString getProfileName(){ return profileName;} - OUString getProfilePath() ; + const OUString& getProfileName(){ return profileName;} + const OUString& getProfilePath(); protected: MozillaProductType product; OUString profileName; |