diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-18 12:07:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-19 21:11:01 +0000 |
commit | 217046eb3445ebbcb8fe6801beb2f9c15d6894c0 (patch) | |
tree | ec9efc7820b24009e3c8ca7104350e0d7417a40c | |
parent | 7b6fd204fae7c61e9527412ee3f56b9314f6ad6f (diff) |
only used with higher debug level
-rw-r--r-- | connectivity/inc/connectivity/sqlparse.hxx | 5 | ||||
-rwxr-xr-x | connectivity/source/parse/sqlbison.y | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/inc/connectivity/sqlparse.hxx b/connectivity/inc/connectivity/sqlparse.hxx index 8339d20459bf..b08896003fac 100644 --- a/connectivity/inc/connectivity/sqlparse.hxx +++ b/connectivity/inc/connectivity/sqlparse.hxx @@ -214,11 +214,10 @@ namespace connectivity // TokenIDToStr: token name belonging to a token number. static ::rtl::OString TokenIDToStr(sal_uInt32 nTokenID, const IParseContext* pContext = NULL); - // StrToTokenID: token number belonging to a token name. - // static sal_uInt32 StrToTokenID(const ::rtl::OString & rName); - +#if OSL_DEBUG_LEVEL > 1 // (empty string if not found) static ::rtl::OUString RuleIDToStr(sal_uInt32 nRuleID); +#endif // StrToRuleID calculates the RuleID for a ::rtl::OUString (that is, ::com::sun::star::sdbcx::Index in yytname) // (0 if not found). The search for an ID based on a String is diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index 41da5b07091d..062b46cdd022 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -4723,12 +4723,13 @@ OSQLParseNode* OSQLParser::parseTree(::rtl::OUString& rErrorMessage, return aStr; } -//----------------------------------------------------------------------------- +#if OSL_DEBUG_LEVEL > 1 ::rtl::OUString OSQLParser::RuleIDToStr(sal_uInt32 nRuleID) { OSL_ENSURE(nRuleID < SAL_N_ELEMENTS(yytname), "OSQLParser::RuleIDToStr: Invalid nRuleId!"); return ::rtl::OUString::createFromAscii(yytname[nRuleID]); } +#endif //----------------------------------------------------------------------------- sal_uInt32 OSQLParser::StrToRuleID(const ::rtl::OString & rValue) |