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 /include/connectivity | |
parent | loplugin:passstuffbyref in comphelper (diff) | |
download | core-ef268562602a4bef0e128f95beaef9732ac00c7d.tar.gz core-ef268562602a4bef0e128f95beaef9732ac00c7d.zip |
loplugin:passstuffbyref in connectivity
Change-Id: I751977ecc1b532f72dd5673767471cb0a2cdbd06
Diffstat (limited to 'include/connectivity')
-rw-r--r-- | include/connectivity/FValue.hxx | 2 | ||||
-rw-r--r-- | include/connectivity/ParameterCont.hxx | 2 | ||||
-rw-r--r-- | include/connectivity/dbcharset.hxx | 2 | ||||
-rw-r--r-- | include/connectivity/sqliterator.hxx | 8 | ||||
-rw-r--r-- | include/connectivity/sqlscan.hxx | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx index d15abd69f24d..c78f3c76b8c5 100644 --- a/include/connectivity/FValue.hxx +++ b/include/connectivity/FValue.hxx @@ -410,7 +410,7 @@ namespace connectivity css::util::DateTime getDateTime() const; css::uno::Sequence<sal_Int8> getSequence() const; // only use for anys - css::uno::Any getAny() const { return *static_cast<css::uno::Any*>(m_aValue.m_pValue); } + const css::uno::Any& getAny() const { return *static_cast<css::uno::Any*>(m_aValue.m_pValue); } css::uno::Any makeAny() const; /** diff --git a/include/connectivity/ParameterCont.hxx b/include/connectivity/ParameterCont.hxx index f1997b755b26..ff6686f5d7db 100644 --- a/include/connectivity/ParameterCont.hxx +++ b/include/connectivity/ParameterCont.hxx @@ -35,7 +35,7 @@ namespace dbtools public: OParameterContinuation() { } - css::uno::Sequence< css::beans::PropertyValue > getValues() const { return m_aValues; } + const css::uno::Sequence< css::beans::PropertyValue >& getValues() const { return m_aValues; } // XInteractionSupplyParameters virtual void SAL_CALL setParameters( const css::uno::Sequence< css::beans::PropertyValue >& _rValues ) throw(css::uno::RuntimeException, std::exception) override; diff --git a/include/connectivity/dbcharset.hxx b/include/connectivity/dbcharset.hxx index 01ce6fa05f96..8c7e9def1ce1 100644 --- a/include/connectivity/dbcharset.hxx +++ b/include/connectivity/dbcharset.hxx @@ -105,7 +105,7 @@ namespace dbtools CharsetIteratorDerefHelper(const CharsetIteratorDerefHelper& _rSource); rtl_TextEncoding getEncoding() const { return m_eEncoding; } - OUString getIanaName() const { return m_aIanaName; } + const OUString& getIanaName() const { return m_aIanaName; } protected: CharsetIteratorDerefHelper( const rtl_TextEncoding _eEncoding, const OUString& _rIanaName ); diff --git a/include/connectivity/sqliterator.hxx b/include/connectivity/sqliterator.hxx index 6afd1c4f4d66..7d69003bc162 100644 --- a/include/connectivity/sqliterator.hxx +++ b/include/connectivity/sqliterator.hxx @@ -220,10 +220,10 @@ namespace connectivity // The TableRangeMap contains all tables associated with the range name found first. const OSQLTables& getTables() const; - ::rtl::Reference<OSQLColumns> getSelectColumns() const { return m_aSelectColumns;} - ::rtl::Reference<OSQLColumns> getGroupColumns() const { return m_aGroupColumns;} - ::rtl::Reference<OSQLColumns> getOrderColumns() const { return m_aOrderColumns;} - ::rtl::Reference<OSQLColumns> getParameters() const { return m_aParameters; } + const ::rtl::Reference<OSQLColumns>& getSelectColumns() const { return m_aSelectColumns;} + const ::rtl::Reference<OSQLColumns>& getGroupColumns() const { return m_aGroupColumns;} + const ::rtl::Reference<OSQLColumns>& getOrderColumns() const { return m_aOrderColumns;} + const ::rtl::Reference<OSQLColumns>& getParameters() const { return m_aParameters; } /** return the columname and the table range @param _pColumnRef diff --git a/include/connectivity/sqlscan.hxx b/include/connectivity/sqlscan.hxx index ad17f7d28e0d..570a17ea7289 100644 --- a/include/connectivity/sqlscan.hxx +++ b/include/connectivity/sqlscan.hxx @@ -60,7 +60,7 @@ namespace connectivity // setting the new information before scanning void prepareScan(const OUString & rNewStatement, const IParseContext* pContext, bool bInternational); const OUString& getErrorMessage() const {return m_sErrorMessage;} - OString getStatement() const { return m_sStatement; } + const OString& getStatement() const { return m_sStatement; } static sal_Int32 SQLlex(); // set this as scanner for flex |