summaryrefslogtreecommitdiff
path: root/idlc/source/errorhandler.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-06-17 11:48:35 +0000
committerRüdiger Timm <rt@openoffice.org>2004-06-17 11:48:35 +0000
commitcd5204cb54c61d2342a1e9904053c8e09ec4eb6d (patch)
treedaea140eeb99fbe81de03427a0db793cae2c6e5c /idlc/source/errorhandler.cxx
parent37fbb8553281dbb98a0d3afd8497a4bd3bb898c3 (diff)
INTEGRATION: CWS ooo64bit01 (1.5.8); FILE MERGED
2004/05/02 00:41:18 svesik 1.5.8.2: RESYNC: (1.5-1.6); FILE MERGED 2004/03/16 23:54:08 fa 1.5.8.1: Merge cws_srx644_port64bit, other misc fixes
Diffstat (limited to 'idlc/source/errorhandler.cxx')
-rw-r--r--idlc/source/errorhandler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx
index fcb532687e36..f983c9aab4f1 100644
--- a/idlc/source/errorhandler.cxx
+++ b/idlc/source/errorhandler.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: errorhandler.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: obo $ $Date: 2004-06-03 15:10:04 $
+ * last change: $Author: rt $ $Date: 2004-06-17 12:48:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -67,7 +67,7 @@
using namespace ::rtl;
-static sal_Char* errorCodeToMessage(ErrorCode eCode)
+static const sal_Char* errorCodeToMessage(ErrorCode eCode)
{
switch (eCode)
{
@@ -200,7 +200,7 @@ static sal_Char* errorCodeToMessage(ErrorCode eCode)
return "unknown errror";
}
-static sal_Char* warningCodeToMessage(WarningCode wCode)
+static const sal_Char* warningCodeToMessage(WarningCode wCode)
{
switch (wCode)
{
@@ -218,7 +218,7 @@ static sal_Char* warningCodeToMessage(WarningCode wCode)
return "unkown warning";
}
-static sal_Char* parseStateToMessage(ParseState state)
+static const sal_Char* parseStateToMessage(ParseState state)
{
switch (state)
{
@@ -618,7 +618,7 @@ void ErrorHandler::warning2(WarningCode w, AstDeclaration* d1, AstDeclaration* d
idlc()->incWarningCount();
}
-void ErrorHandler::syntaxError(ParseState ps, sal_Int32 lineNumber,const sal_Char* errmsg)
+void ErrorHandler::syntaxError(ParseState ps, sal_Int32 lineNumber, const sal_Char* errmsg)
{
errorHeader(EIDL_SYNTAX_ERROR, lineNumber);
fprintf(stderr, "%s: %s\n", parseStateToMessage(ps), errmsg);