From f7afe79010ef13a3ae288e5b09122f1e5db64879 Mon Sep 17 00:00:00 2001 From: Kelly Anderson Date: Tue, 31 May 2011 12:26:34 +0200 Subject: fix compile with Bison 2.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luboš Luňák --- connectivity/inc/connectivity/sqlparse.hxx | 2 +- connectivity/source/parse/sqlbison.y | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'connectivity') diff --git a/connectivity/inc/connectivity/sqlparse.hxx b/connectivity/inc/connectivity/sqlparse.hxx index e7420d6c48c3..a99cd369677c 100644 --- a/connectivity/inc/connectivity/sqlparse.hxx +++ b/connectivity/inc/connectivity/sqlparse.hxx @@ -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); diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index dbfbd7ad1322..4fc353a51d31 100755 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -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()) { -- cgit