diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-18 13:40:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-19 09:35:59 +0200 |
commit | 30f7ce30c92e1add033cdea0a78cea5563758513 (patch) | |
tree | ff44ddb79dcbac9aab52b087dbe6573f4cff4b11 /include/connectivity | |
parent | 0f7e64f3edbc1a49e9681d12ce24326150a8a675 (diff) |
loplugin:constparams in connectivity
Change-Id: I9b81c6227fb3c89a832640058a11444f72019694
Reviewed-on: https://gerrit.libreoffice.org/40155
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/FValue.hxx | 2 | ||||
-rw-r--r-- | include/connectivity/sqliterator.hxx | 10 | ||||
-rw-r--r-- | include/connectivity/sqlnode.hxx | 4 | ||||
-rw-r--r-- | include/connectivity/sqlparse.hxx | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx index 2c3645ea2ae8..d2fbfd47e9ba 100644 --- a/include/connectivity/FValue.hxx +++ b/include/connectivity/FValue.hxx @@ -486,7 +486,7 @@ namespace connectivity { bool m_bBound; TSetRefBound(bool _bBound) : m_bBound(_bBound){} - void operator()(ORowSetValueDecoratorRef& _rValue) const { _rValue->setBound(m_bBound); } + void operator()(ORowSetValueDecoratorRef const & _rValue) const { _rValue->setBound(m_bBound); } }; diff --git a/include/connectivity/sqliterator.hxx b/include/connectivity/sqliterator.hxx index 4db670eafd49..e70e19129037 100644 --- a/include/connectivity/sqliterator.hxx +++ b/include/connectivity/sqliterator.hxx @@ -95,11 +95,11 @@ namespace connectivity void traverseParameter(const OSQLParseNode* _pParseNode,const OSQLParseNode* _pColumnRef,const OUString& _aColumnName, OUString& _aTableRange, const OUString& _rColumnAlias); // inserts a table into the map void traverseOneTableName( OSQLTables& _rTables,const OSQLParseNode * pTableName, const OUString & rTableRange ); - void traverseSearchCondition(OSQLParseNode * pSearchCondition); + void traverseSearchCondition(OSQLParseNode const * pSearchCondition); void traverseOnePredicate( - OSQLParseNode * pColumnRef, + OSQLParseNode const * pColumnRef, OUString& aValue, - OSQLParseNode * pParameter); + OSQLParseNode const * pParameter); void traverseByColumnNames(const OSQLParseNode* pSelectNode, bool _bOrder); void traverseParameters(const OSQLParseNode* pSelectNode); @@ -143,8 +143,8 @@ namespace connectivity const OUString & rColumnName ); protected: - void setSelectColumnName(::rtl::Reference<OSQLColumns>& _rColumns,const OUString & rColumnName,const OUString & rColumnAlias, const OUString & rTableRange, bool bFkt=false, sal_Int32 _nType = css::sdbc::DataType::VARCHAR, bool bAggFkt=false); - void appendColumns(::rtl::Reference<OSQLColumns>& _rColumns,const OUString& _rTableAlias,const OSQLTable& _rTable); + void setSelectColumnName(::rtl::Reference<OSQLColumns> const & _rColumns,const OUString & rColumnName,const OUString & rColumnAlias, const OUString & rTableRange, bool bFkt=false, sal_Int32 _nType = css::sdbc::DataType::VARCHAR, bool bAggFkt=false); + void appendColumns(::rtl::Reference<OSQLColumns> const & _rColumns,const OUString& _rTableAlias,const OSQLTable& _rTable); // Other member variables that should be available in the "set" functions // can be defined in the derived class. They can be initialized // in its constructor and, after the "traverse" routines have been used, diff --git a/include/connectivity/sqlnode.hxx b/include/connectivity/sqlnode.hxx index b7550e530109..20c821957eab 100644 --- a/include/connectivity/sqlnode.hxx +++ b/include/connectivity/sqlnode.hxx @@ -252,7 +252,7 @@ namespace connectivity OSQLParseNode(const OSQLParseNode& rParseNode); OSQLParseNode& operator=(const OSQLParseNode& rParseNode); - bool operator==(OSQLParseNode& rParseNode) const; + bool operator==(OSQLParseNode const & rParseNode) const; // destructor destructs the tree recursively virtual ~OSQLParseNode(); @@ -400,7 +400,7 @@ namespace connectivity // substitute all occurrences of :var or [name] into the dynamic parameter ? // _pNode will be modified if parameters exists - static void substituteParameterNames(OSQLParseNode* _pNode); + static void substituteParameterNames(OSQLParseNode const * _pNode); /** return a table range when it exists. */ diff --git a/include/connectivity/sqlparse.hxx b/include/connectivity/sqlparse.hxx index 18bc0a3c0228..eb1f7e075df5 100644 --- a/include/connectivity/sqlparse.hxx +++ b/include/connectivity/sqlparse.hxx @@ -160,7 +160,7 @@ namespace connectivity // convert a string into double trim it to scale of _nscale and than transform it back to string OUString stringToDouble(const OUString& _rValue,sal_Int16 _nScale); OSQLParseNode* buildDate(sal_Int32 _nType,OSQLParseNode*& pLiteral); - bool extractDate(OSQLParseNode* pLiteral,double& _rfValue); + bool extractDate(OSQLParseNode const * pLiteral,double& _rfValue); void killThousandSeparator(OSQLParseNode* pLiteral); OSQLParseNode* convertNode(sal_Int32 nType, OSQLParseNode* pLiteral); // makes a string out of a number, pLiteral will be deleted |