From a81ddd228daae8b02eacaa68ba548de68bdbf232 Mon Sep 17 00:00:00 2001 From: XoD Date: Mon, 19 Dec 2011 09:36:44 +0100 Subject: [PATCH] Fix constant string parameter. The methode Error 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 6e07931..0442500 100644 --- a/neo/d3xp/script/Script_Interpreter.cpp +++ b/neo/d3xp/script/Script_Interpreter.cpp @@ -425,7 +425,7 @@ idInterpreter::Error Aborts the currently executing function ============ */ -void idInterpreter::Error( char *fmt, ... ) const { +void idInterpreter::Error( 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 d0ab7a9..8d6c529 100644 --- a/neo/d3xp/script/Script_Interpreter.h +++ b/neo/d3xp/script/Script_Interpreter.h @@ -93,7 +93,7 @@ public: int CurrentLine( void ) const; const char *CurrentFile( void ) const; - void Error( char *fmt, ... ) const id_attribute((format(printf,2,3))); + void Error( const char *fmt, ... ) const id_attribute((format(printf,2,3))); void Warning( char *fmt, ... ) const id_attribute((format(printf,2,3))); void DisplayInfo( void ) const;