fix compile with Bison 2.5

Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
This commit is contained in:
Kelly Anderson
2011-05-31 12:26:34 +02:00
committed by Luboš Luňák
parent 738fa3d5ed
commit f7afe79010
2 changed files with 2 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ namespace connectivity
// returns the type for a parameter in a given function name // returns the type for a parameter in a given function name
static sal_Int32 getFunctionParameterType(sal_uInt32 _nTokenId,sal_uInt32 _nPos); static sal_Int32 getFunctionParameterType(sal_uInt32 _nTokenId,sal_uInt32 _nPos);
void error(sal_Char *fmt); void error(const sal_Char *fmt);
int SQLlex(); int SQLlex();
#ifdef YYBISON #ifdef YYBISON
void setParseTree(OSQLParseNode * pNewParseTree); void setParseTree(OSQLParseNode * pNewParseTree);

View File

@@ -4333,7 +4333,7 @@ void OSQLParser::reduceLiteral(OSQLParseNode*& pLiteral, sal_Bool bAppendBlank)
} }
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
void OSQLParser::error(sal_Char *fmt) void OSQLParser::error(const sal_Char *fmt)
{ {
if(!m_sErrorMessage.getLength()) if(!m_sErrorMessage.getLength())
{ {