diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-28 13:48:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-29 08:00:29 +0100 |
commit | 31f71635a136daf36d554e0c20db9ae0d1686c23 (patch) | |
tree | ba4150e1c999a15362faa18863a4a5105bd5a8d7 /include/connectivity | |
parent | 38f5e768b0f858f8f990a8f297396821c75d45dc (diff) |
loplugin:passstuffbyref improved return in ucb,connectivity
Change-Id: Ib2590648c9dced87693a58a506cb62d04e37b18d
Reviewed-on: https://gerrit.libreoffice.org/47149
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/TTableHelper.hxx | 10 | ||||
-rw-r--r-- | include/connectivity/statementcomposer.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/connectivity/TTableHelper.hxx b/include/connectivity/TTableHelper.hxx index aa462dd50fc3..54d941421860 100644 --- a/include/connectivity/TTableHelper.hxx +++ b/include/connectivity/TTableHelper.hxx @@ -136,7 +136,7 @@ namespace connectivity ); virtual css::uno::Reference< css::sdbc::XDatabaseMetaData> getMetaData() const override; - css::uno::Reference< css::sdbc::XConnection> getConnection() const; + css::uno::Reference< css::sdbc::XConnection> const & getConnection() const; // XRename virtual void SAL_CALL rename( const OUString& newName ) override; @@ -152,10 +152,10 @@ namespace connectivity virtual OUString getTypeCreatePattern() const; - css::uno::Reference< css::sdb::tools::XTableRename> getRenameService() const; - css::uno::Reference< css::sdb::tools::XTableAlteration> getAlterService() const; - css::uno::Reference< css::sdb::tools::XKeyAlteration> getKeyService() const; - css::uno::Reference< css::sdb::tools::XIndexAlteration> getIndexService() const; + css::uno::Reference< css::sdb::tools::XTableRename> const & getRenameService() const; + css::uno::Reference< css::sdb::tools::XTableAlteration> const & getAlterService() const; + css::uno::Reference< css::sdb::tools::XKeyAlteration> const & getKeyService() const; + css::uno::Reference< css::sdb::tools::XIndexAlteration> const & getIndexService() const; }; } #endif // INCLUDED_CONNECTIVITY_TTABLEHELPER_HXX diff --git a/include/connectivity/statementcomposer.hxx b/include/connectivity/statementcomposer.hxx index e1cb17af49d3..e94d95a1a11b 100644 --- a/include/connectivity/statementcomposer.hxx +++ b/include/connectivity/statementcomposer.hxx @@ -72,7 +72,7 @@ namespace dbtools @throws css::sdbc::SQLException if such an exception occurs while creating the composer */ - css::uno::Reference< css::sdb::XSingleSelectQueryComposer > + css::uno::Reference< css::sdb::XSingleSelectQueryComposer > const & getComposer(); /** returns the composer statement |