summaryrefslogtreecommitdiff
path: root/include/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-13 10:37:01 +0200
committerNoel Grandin <noel@peralex.com>2015-04-23 13:08:47 +0200
commit6d5ae48427d1c59e65f0bfc16cf075eaa4cdca17 (patch)
treec157ee7414beb262031e6a85afdfac0ea6242fea /include/connectivity
parent7671856926e04c2708152d1c9f74217004cbc64c (diff)
loplugin:staticmethods
Change-Id: I200fdb2e193127f0c9e8cec4859845d3ec19cea0
Diffstat (limited to 'include/connectivity')
-rw-r--r--include/connectivity/filtermanager.hxx2
-rw-r--r--include/connectivity/sqliterator.hxx2
-rw-r--r--include/connectivity/sqlnode.hxx6
-rw-r--r--include/connectivity/sqlparse.hxx4
-rw-r--r--include/connectivity/sqlscan.hxx4
5 files changed, 9 insertions, 9 deletions
diff --git a/include/connectivity/filtermanager.hxx b/include/connectivity/filtermanager.hxx
index 11101c347d2e..6008b535107f 100644
--- a/include/connectivity/filtermanager.hxx
+++ b/include/connectivity/filtermanager.hxx
@@ -97,7 +97,7 @@ namespace dbtools
/** appends one filter component to the statement in our composer
*/
- void appendFilterComponent( OUStringBuffer& io_appendTo, const OUString& i_component ) const;
+ static void appendFilterComponent( OUStringBuffer& io_appendTo, const OUString& i_component );
/// checks whether there is only one (or even no) non-empty filter component
bool isThereAtMostOneComponent( OUStringBuffer& o_singleComponent ) const;
diff --git a/include/connectivity/sqliterator.hxx b/include/connectivity/sqliterator.hxx
index 0ea58d989c20..be8274a8e607 100644
--- a/include/connectivity/sqliterator.hxx
+++ b/include/connectivity/sqliterator.hxx
@@ -274,7 +274,7 @@ namespace connectivity
bool getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const;
// return true when the tableNode is a rule like catalog_name, schema_name or table_name
- bool isTableNode(const OSQLParseNode* _pTableNode) const;
+ static bool isTableNode(const OSQLParseNode* _pTableNode);
// tries to find the correct type of the function
sal_Int32 getFunctionReturnType(const OSQLParseNode* _pNode );
diff --git a/include/connectivity/sqlnode.hxx b/include/connectivity/sqlnode.hxx
index 4efd2ffdbf41..ad6ede75355d 100644
--- a/include/connectivity/sqlnode.hxx
+++ b/include/connectivity/sqlnode.hxx
@@ -437,9 +437,9 @@ namespace connectivity
bool impl_parseTableNameNodeToString_throw( OUStringBuffer& rString, const SQLParseNodeParameter& rParam ) const;
bool addDateValue(OUStringBuffer& rString, const SQLParseNodeParameter& rParam) const;
- OUString convertDateTimeString(const SQLParseNodeParameter& rParam, const OUString& rString) const;
- OUString convertDateString(const SQLParseNodeParameter& rParam, const OUString& rString) const;
- OUString convertTimeString(const SQLParseNodeParameter& rParam, const OUString& rString) const;
+ static OUString convertDateTimeString(const SQLParseNodeParameter& rParam, const OUString& rString);
+ static OUString convertDateString(const SQLParseNodeParameter& rParam, const OUString& rString);
+ static OUString convertTimeString(const SQLParseNodeParameter& rParam, const OUString& rString);
void parseLeaf(OUStringBuffer& rString, const SQLParseNodeParameter& rParam) const;
};
diff --git a/include/connectivity/sqlparse.hxx b/include/connectivity/sqlparse.hxx
index aa59a03e3795..a02d884f6ef4 100644
--- a/include/connectivity/sqlparse.hxx
+++ b/include/connectivity/sqlparse.hxx
@@ -221,7 +221,7 @@ namespace connectivity
static sal_Int32 getFunctionParameterType(sal_uInt32 _nTokenId,sal_uInt32 _nPos);
void error(const sal_Char *fmt);
- int SQLlex();
+ static int SQLlex();
#ifdef YYBISON
void setParseTree(OSQLParseNode * pNewParseTree);
@@ -230,7 +230,7 @@ namespace connectivity
bool inPredicateCheck() const {return m_xField.is();}
const OUString& getFieldName() const {return m_sFieldName;}
- void reduceLiteral(OSQLParseNode*& pLiteral, bool bAppendBlank);
+ static void reduceLiteral(OSQLParseNode*& pLiteral, bool bAppendBlank);
// does not change the pLiteral argument
sal_Int16 buildNode(OSQLParseNode*& pAppend,OSQLParseNode* pCompare,OSQLParseNode* pLiteral,OSQLParseNode* pLiteral2);
diff --git a/include/connectivity/sqlscan.hxx b/include/connectivity/sqlscan.hxx
index 3e79e2141874..009a2d640355 100644
--- a/include/connectivity/sqlscan.hxx
+++ b/include/connectivity/sqlscan.hxx
@@ -55,8 +55,8 @@ namespace connectivity
sal_Int32 SQLyygetc();
void SQLyyerror(char const *fmt);
- void output(sal_Int32) { OSL_FAIL("Internal error in sdblex.l: output not possible"); }
- void ECHO() { OSL_FAIL("Internal error in sdblex.l: ECHO not possible"); }
+ static void output(sal_Int32) { OSL_FAIL("Internal error in sdblex.l: output not possible"); }
+ static void ECHO() { OSL_FAIL("Internal error in sdblex.l: ECHO not possible"); }
IParseContext::InternationalKeyCode getInternationalTokenID(const char* sToken) const;
// setting the new information before scanning