From ee1ad737cef6964be4f5b1fb3ae275d13668b0bc Mon Sep 17 00:00:00 2001 From: XoD Date: Mon, 19 Dec 2011 09:40:17 +0100 Subject: [PATCH] Fix constant string parameter. The methode Warning of ScriptInterpreter is now const compliant. Signed-off-by: XoD --- neo/d3xp/script/Script_Interpreter.cpp | 2 +- neo/d3xp/script/Script_Interpreter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/neo/d3xp/script/Script_Interpreter.cpp b/neo/d3xp/script/Script_Interpreter.cpp index 0442500..de63e7b 100644 --- a/neo/d3xp/script/Script_Interpreter.cpp +++ b/neo/d3xp/script/Script_Interpreter.cpp @@ -450,7 +450,7 @@ idInterpreter::Warning Prints file and line number information with warning. ============ */ -void idInterpreter::Warning( char *fmt, ... ) const { +void idInterpreter::Warning( const char *fmt, ... ) const { va_list argptr; char text[ 1024 ]; diff --git a/neo/d3xp/script/Script_Interpreter.h b/neo/d3xp/script/Script_Interpreter.h index 8d6c529..a1e650a 100644 --- a/neo/d3xp/script/Script_Interpreter.h +++ b/neo/d3xp/script/Script_Interpreter.h @@ -94,7 +94,7 @@ public: const char *CurrentFile( void ) const; void Error( const char *fmt, ... ) const id_attribute((format(printf,2,3))); - void Warning( char *fmt, ... ) const id_attribute((format(printf,2,3))); + void Warning( const char *fmt, ... ) const id_attribute((format(printf,2,3))); void DisplayInfo( void ) const; bool BeginMultiFrameEvent( idEntity *ent, const idEventDef *event );