1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Add const qualifier to OSQLParser::error() to unbreak build.

Approved by:	maho
This commit is contained in:
Don Lewis 2012-02-14 07:53:58 +00:00
parent 97bbd1397a
commit 8dfa54f367
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291324
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,22 @@
--- connectivity/source/parse/sqlbison.y.orig 2011-01-18 05:32:30.000000000 -0800
+++ connectivity/source/parse/sqlbison.y 2012-02-13 14:03:12.000000000 -0800
@@ -4334,7 +4334,7 @@
}
// -------------------------------------------------------------------------
-void OSQLParser::error(sal_Char *fmt)
+void OSQLParser::error(const sal_Char *fmt)
{
if(!m_sErrorMessage.getLength())
{
--- connectivity/inc/connectivity/sqlparse.hxx.orig 2011-01-18 05:32:29.000000000 -0800
+++ connectivity/inc/connectivity/sqlparse.hxx 2012-02-13 17:06:06.000000000 -0800
@@ -232,7 +232,7 @@
// 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

@ -0,0 +1,22 @@
--- connectivity/source/parse/sqlbison.y.orig 2011-01-18 05:32:30.000000000 -0800
+++ connectivity/source/parse/sqlbison.y 2012-02-13 14:03:12.000000000 -0800
@@ -4334,7 +4334,7 @@
}
// -------------------------------------------------------------------------
-void OSQLParser::error(sal_Char *fmt)
+void OSQLParser::error(const sal_Char *fmt)
{
if(!m_sErrorMessage.getLength())
{
--- connectivity/inc/connectivity/sqlparse.hxx.orig 2011-01-18 05:32:29.000000000 -0800
+++ connectivity/inc/connectivity/sqlparse.hxx 2012-02-13 17:06:06.000000000 -0800
@@ -232,7 +232,7 @@
// 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);