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 /connectivity/source/inc/file | |
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 'connectivity/source/inc/file')
-rw-r--r-- | connectivity/source/inc/file/FPreparedStatement.hxx | 4 | ||||
-rw-r--r-- | connectivity/source/inc/file/FResultSet.hxx | 2 | ||||
-rw-r--r-- | connectivity/source/inc/file/FStatement.hxx | 4 | ||||
-rw-r--r-- | connectivity/source/inc/file/fanalyzer.hxx | 8 | ||||
-rw-r--r-- | connectivity/source/inc/file/fcomp.hxx | 18 |
5 files changed, 18 insertions, 18 deletions
diff --git a/connectivity/source/inc/file/FPreparedStatement.hxx b/connectivity/source/inc/file/FPreparedStatement.hxx index 6441202ded24..aef9e8fa2f18 100644 --- a/connectivity/source/inc/file/FPreparedStatement.hxx +++ b/connectivity/source/inc/file/FPreparedStatement.hxx @@ -58,10 +58,10 @@ namespace connectivity void checkAndResizeParameters(sal_Int32 parameterIndex); void setParameter(sal_Int32 parameterIndex, const ORowSetValue& x); - sal_uInt32 AddParameter(connectivity::OSQLParseNode * pParameter, + sal_uInt32 AddParameter(connectivity::OSQLParseNode const * pParameter, const css::uno::Reference< css::beans::XPropertySet>& _xCol); void scanParameter(OSQLParseNode* pParseNode,std::vector< OSQLParseNode*>& _rParaNodes); - void describeColumn(OSQLParseNode* _pParameter,OSQLParseNode* _pNode,const OSQLTable& _xTable); + void describeColumn(OSQLParseNode const * _pParameter, OSQLParseNode const * _pNode, const OSQLTable& _xTable); void describeParameter(); virtual void parseParamterElem(const OUString& _sColumnName,OSQLParseNode* pRow_Value_Constructor_Elem) override; diff --git a/connectivity/source/inc/file/FResultSet.hxx b/connectivity/source/inc/file/FResultSet.hxx index c1554100c626..e60ee6f465e6 100644 --- a/connectivity/source/inc/file/FResultSet.hxx +++ b/connectivity/source/inc/file/FResultSet.hxx @@ -130,7 +130,7 @@ namespace connectivity bool bEvaluate = true, bool bRetrieveData = true); - OKeyValue* GetOrderbyKeyValue(OValueRefRow& _rRow); + OKeyValue* GetOrderbyKeyValue(OValueRefRow const & _rRow); bool IsSorted() const { return !m_aOrderbyColumnNumber.empty() && m_aOrderbyColumnNumber[0] >= 0;} // return true when the select statement is "select count(*) from table" diff --git a/connectivity/source/inc/file/FStatement.hxx b/connectivity/source/inc/file/FStatement.hxx index baa9cf74f437..bb4c37926684 100644 --- a/connectivity/source/inc/file/FStatement.hxx +++ b/connectivity/source/inc/file/FStatement.hxx @@ -102,8 +102,8 @@ namespace connectivity void createColumnMapping(); // searches the statement for sort criteria void anylizeSQL(); - void setOrderbyColumn( connectivity::OSQLParseNode* pColumnRef, - connectivity::OSQLParseNode* pAscendingDescending); + void setOrderbyColumn( connectivity::OSQLParseNode const * pColumnRef, + connectivity::OSQLParseNode const * pAscendingDescending); virtual void initializeResultSet(OResultSet* _pResult); diff --git a/connectivity/source/inc/file/fanalyzer.hxx b/connectivity/source/inc/file/fanalyzer.hxx index d92b3cf8991a..b5a7af7bafb6 100644 --- a/connectivity/source/inc/file/fanalyzer.hxx +++ b/connectivity/source/inc/file/fanalyzer.hxx @@ -55,7 +55,7 @@ namespace connectivity { } OConnection* getConnection() const { return m_pConnection; } - void bindEvaluationRow(OValueRefRow& _pRow); // Bind an evaluation row to the restriction + void bindEvaluationRow(OValueRefRow const & _pRow); // Bind an evaluation row to the restriction /** bind the select columns if they contain a function which needs a row value @param _pRow the result row */ @@ -64,16 +64,16 @@ namespace connectivity /** binds the row to parameter for the restrictions @param _pRow the parameter row */ - void bindParameterRow(OValueRefRow& _pRow); + void bindParameterRow(OValueRefRow const & _pRow); void setIndexes(const css::uno::Reference< css::container::XNameAccess>& _xIndexes); void dispose(); - void start(OSQLParseNode* pSQLParseNode); + void start(OSQLParseNode const * pSQLParseNode); bool hasRestriction() const; bool hasFunctions() const; bool evaluateRestriction() { return m_aInterpreter->start(); } - void setSelectionEvaluationResult(OValueRefRow& _pRow,const std::vector<sal_Int32>& _rColumnMapping); + void setSelectionEvaluationResult(OValueRefRow const & _pRow,const std::vector<sal_Int32>& _rColumnMapping); void setOrigColumns(const css::uno::Reference< css::container::XNameAccess>& rCols); static OOperandAttr* createOperandAttr(sal_Int32 _nPos, const css::uno::Reference< css::beans::XPropertySet>& _xCol, diff --git a/connectivity/source/inc/file/fcomp.hxx b/connectivity/source/inc/file/fcomp.hxx index 153e59d32806..0e8606002e6c 100644 --- a/connectivity/source/inc/file/fcomp.hxx +++ b/connectivity/source/inc/file/fcomp.hxx @@ -58,7 +58,7 @@ namespace connectivity { } void dispose(); - void start(connectivity::OSQLParseNode* pSQLParseNode); + void start(connectivity::OSQLParseNode const * pSQLParseNode); OOperand* execute(connectivity::OSQLParseNode* pPredicateNode); void Clean(); @@ -69,25 +69,25 @@ namespace connectivity protected: /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void execute_COMPARE(connectivity::OSQLParseNode* pPredicateNode); + void execute_COMPARE(connectivity::OSQLParseNode const * pPredicateNode); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void execute_LIKE(connectivity::OSQLParseNode* pPredicateNode); + void execute_LIKE(connectivity::OSQLParseNode const * pPredicateNode); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void execute_BETWEEN(connectivity::OSQLParseNode* pPredicateNode); + void execute_BETWEEN(connectivity::OSQLParseNode const * pPredicateNode); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void execute_ISNULL(connectivity::OSQLParseNode* pPredicateNode); + void execute_ISNULL(connectivity::OSQLParseNode const * pPredicateNode); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException OOperand* execute_Operand(connectivity::OSQLParseNode* pPredicateNode); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void execute_Fold(OSQLParseNode* pPredicateNode); + void execute_Fold(OSQLParseNode const * pPredicateNode); /// @throws css::sdbc::SQLException /// @throws css::uno::RuntimeException - void executeFunction(OSQLParseNode* pPredicateNode); + void executeFunction(OSQLParseNode const * pPredicateNode); }; @@ -102,14 +102,14 @@ namespace connectivity virtual ~OPredicateInterpreter() override; bool evaluate(OCodeList& rCodeList); - void evaluateSelection(OCodeList& rCodeList,ORowSetValueDecoratorRef& _rVal); + void evaluateSelection(OCodeList& rCodeList, ORowSetValueDecoratorRef const & _rVal); bool start() { return evaluate(m_rCompiler->m_aCodeList); } - void startSelection(ORowSetValueDecoratorRef& _rVal) + void startSelection(ORowSetValueDecoratorRef const & _rVal) { evaluateSelection(m_rCompiler->m_aCodeList,_rVal); } |