summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-23 14:32:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-24 07:46:27 +0100
commit48fd4199a665130947033ee431db766c04d8d023 (patch)
tree9df2c493497c604b56dc7ecfa2635fee496adcb4 /connectivity
parentd2cf4cb76268c600ff7cfcdb6dc97c859f8b6e38 (diff)
loplugin:constparams in connectivity..cui
Change-Id: Ia2ae97498a9aad8638c4b77ce20143eeec616751 Reviewed-on: https://gerrit.libreoffice.org/66792 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.cxx2
-rw-r--r--connectivity/source/drivers/firebird/ResultSet.hxx2
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_general.cxx5
-rw-r--r--connectivity/source/drivers/mysqlc/mysqlc_general.hxx2
-rw-r--r--connectivity/source/inc/odbc/OTools.hxx2
5 files changed, 8 insertions, 5 deletions
diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index f08be6983771..38384282040b 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -57,7 +57,7 @@ using namespace ::com::sun::star::util;
OResultSet::OResultSet(Connection* pConnection,
::osl::Mutex& rMutex,
const uno::Reference< XInterface >& xStatement,
- isc_stmt_handle& aStatementHandle,
+ const isc_stmt_handle& aStatementHandle,
XSQLDA* pSqlda )
: OResultSet_BASE(rMutex)
, OPropertyContainer(OResultSet_BASE::rBHelper)
diff --git a/connectivity/source/drivers/firebird/ResultSet.hxx b/connectivity/source/drivers/firebird/ResultSet.hxx
index 008bc5b55263..ca1804629b2a 100644
--- a/connectivity/source/drivers/firebird/ResultSet.hxx
+++ b/connectivity/source/drivers/firebird/ResultSet.hxx
@@ -121,7 +121,7 @@ namespace connectivity
OResultSet(Connection* pConnection,
::osl::Mutex& rMutex,
const css::uno::Reference< css::uno::XInterface >& xStatement,
- isc_stmt_handle& aStatementHandle,
+ const isc_stmt_handle& aStatementHandle,
XSQLDA* aSqlda
);
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx
index 56b92afd2245..ed1a71dd460d 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx
@@ -225,7 +225,10 @@ sal_Int32 mysqlStrToOOOType(const OUString& sType)
return css::sdbc::DataType::VARCHAR;
}
-OUString mysqlTypeToStr(MYSQL_FIELD* field) { return mysqlTypeToStr(field->type, field->flags); }
+OUString mysqlTypeToStr(MYSQL_FIELD const* field)
+{
+ return mysqlTypeToStr(field->type, field->flags);
+}
OUString mysqlTypeToStr(unsigned type, unsigned flags)
{
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.hxx b/connectivity/source/drivers/mysqlc/mysqlc_general.hxx
index f8d866964318..67dbd7342597 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_general.hxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_general.hxx
@@ -105,7 +105,7 @@ void throwSQLExceptionWithMsg(const char* msg, unsigned int errorNum,
sal_Int32 mysqlToOOOType(int eType, int charsetnr) noexcept;
-OUString mysqlTypeToStr(MYSQL_FIELD* pField);
+OUString mysqlTypeToStr(MYSQL_FIELD const* pField);
OUString mysqlTypeToStr(unsigned mysql_type, unsigned mysql_flags);
diff --git a/connectivity/source/inc/odbc/OTools.hxx b/connectivity/source/inc/odbc/OTools.hxx
index 377a42de0ada..3f2fddb8178e 100644
--- a/connectivity/source/inc/odbc/OTools.hxx
+++ b/connectivity/source/inc/odbc/OTools.hxx
@@ -231,7 +231,7 @@ namespace connectivity
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
- template <class T> void getValue( OConnection* _pConnection,
+ template <class T> void getValue( const OConnection* _pConnection,
SQLHANDLE _aStatementHandle,
sal_Int32 columnIndex,
SQLSMALLINT _nType,