[Libreoffice-commits] core.git: connectivity/source

Stephan Bergmann sbergman at redhat.com
Mon Jun 8 03:56:17 PDT 2015


 connectivity/source/parse/sqlflex.l   |   10 +++++-----
 connectivity/source/parse/sqlnode.cxx |   10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 81d82b78a107f2e6c14d6fbdf0d97c8e6cc8b0bd
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Jun 8 12:55:36 2015 +0200

    loplugin:staticmethods
    
    Change-Id: I22af41840410ee78aee739e0dec49bb43cda874b

diff --git a/connectivity/source/parse/sqlflex.l b/connectivity/source/parse/sqlflex.l
index 1e50927..be74010 100644
--- a/connectivity/source/parse/sqlflex.l
+++ b/connectivity/source/parse/sqlflex.l
@@ -788,11 +788,11 @@ IParseContext::InternationalKeyCode OSQLScanner::getInternationalTokenID(const s
     return (m_bInternational) ? m_pContext->getIntlKeyCode(::rtl::OString(sToken) ) : IParseContext::KEY_NONE;
 }
 // -------------------------------------------------------------------------
-sal_Int32	OSQLScanner::GetGERRule() const		{ return PREDICATE_GER; }
-sal_Int32	OSQLScanner::GetENGRule() const		{ return PREDICATE_ENG; }
-sal_Int32	OSQLScanner::GetSQLRule() const		{ return SQL; }
-sal_Int32	OSQLScanner::GetDATERule() const	{ return DATE; }
-sal_Int32	OSQLScanner::GetSTRINGRule() const	{ return STRING; }
+sal_Int32	OSQLScanner::GetGERRule()		{ return PREDICATE_GER; }
+sal_Int32	OSQLScanner::GetENGRule()		{ return PREDICATE_ENG; }
+sal_Int32	OSQLScanner::GetSQLRule()		{ return SQL; }
+sal_Int32	OSQLScanner::GetDATERule()	{ return DATE; }
+sal_Int32	OSQLScanner::GetSTRINGRule()	{ return STRING; }
 // -------------------------------------------------------------------------
 void OSQLScanner::setScanner(bool _bNull)
 {
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 5144ea8..d335027 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -1238,24 +1238,24 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString
             case DataType::DATE:
             case DataType::TIME:
             case DataType::TIMESTAMP:
-                s_pScanner->SetRule(s_pScanner->GetDATERule());
+                s_pScanner->SetRule(OSQLScanner::GetDATERule());
                 break;
             case DataType::CHAR:
             case DataType::VARCHAR:
             case DataType::LONGVARCHAR:
             case DataType::CLOB:
-                s_pScanner->SetRule(s_pScanner->GetSTRINGRule());
+                s_pScanner->SetRule(OSQLScanner::GetSTRINGRule());
                 break;
             default:
                 if ( s_xLocaleData->getLocaleItem( m_pData->aLocale ).decimalSeparator.toChar() == ',' )
-                    s_pScanner->SetRule(s_pScanner->GetGERRule());
+                    s_pScanner->SetRule(OSQLScanner::GetGERRule());
                 else
-                    s_pScanner->SetRule(s_pScanner->GetENGRule());
+                    s_pScanner->SetRule(OSQLScanner::GetENGRule());
         }
 
     }
     else
-        s_pScanner->SetRule(s_pScanner->GetSQLRule());
+        s_pScanner->SetRule(OSQLScanner::GetSQLRule());
 
     s_pScanner->prepareScan(rStatement, m_pContext, true);
 


More information about the Libreoffice-commits mailing list