summaryrefslogtreecommitdiff
path: root/connectivity/source/parse
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-18 12:07:01 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-19 21:11:01 +0000
commit217046eb3445ebbcb8fe6801beb2f9c15d6894c0 (patch)
treeec9efc7820b24009e3c8ca7104350e0d7417a40c /connectivity/source/parse
parent7b6fd204fae7c61e9527412ee3f56b9314f6ad6f (diff)
only used with higher debug level
Diffstat (limited to 'connectivity/source/parse')
-rwxr-xr-xconnectivity/source/parse/sqlbison.y3
1 files changed, 2 insertions, 1 deletions
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)