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 1bf36db7af
commit 8ce982432a
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
static sal_Int32 getFunctionParameterType(sal_uInt32 _nTokenId,sal_uInt32 _nPos);
void error(sal_Char *fmt);
void error(const sal_Char *fmt);
int SQLlex();
#ifdef YYBISON
void setParseTree(OSQLParseNode * pNewParseTree);

View file

@ -4781,7 +4781,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())
{