From 6e9013d27d4ed369400a1402831949dfed49e917 Mon Sep 17 00:00:00 2001 From: cascade Date: Fri, 30 Jan 2009 17:53:34 +0000 Subject: [PATCH] OCC20825 Errors during compilation for new version of WOK --- src/EDL/EDL.cxx | 4 ++-- src/EDL/EDL_Interpretor.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EDL/EDL.cxx b/src/EDL/EDL.cxx index 43bc5ea..a7903c6 100755 --- a/src/EDL/EDL.cxx +++ b/src/EDL/EDL.cxx @@ -21,8 +21,8 @@ Standard_EXPORT void EDL_SetErrorMsgHandler(void (*aMsgHandler) (Standard_CStrin void EDL::PrintError(const EDL_Error anError, const Standard_CString anArg) { - char *format; - char *errortext = ""; +const char *format; +const char *errortext = ""; if (EDLlineno >= 0) { format = "%s : line %d : %s%s\n"; diff --git a/src/EDL/EDL_Interpretor.cxx b/src/EDL/EDL_Interpretor.cxx index c074aa9..b6ac825 100755 --- a/src/EDL/EDL_Interpretor.cxx +++ b/src/EDL/EDL_Interpretor.cxx @@ -994,7 +994,7 @@ void edl_test_condition(const edlstring varname, int ope, const edlstring value) } break; default: - EDLerror("wrong logical operator...",""); + EDLerror((char*)"wrong logical operator...",(char*)""); exit(EDL_SYNTAXERROR); } @@ -1022,7 +1022,7 @@ void edl_eval_local_condition(int ope) break; case LOGOR: Result = Left || Right; break; - default: EDLerror("wrong logical operator..."," "); + default: EDLerror((char*)"wrong logical operator...",(char*)" "); exit(EDL_SYNTAXERROR); } -- 2.39.5