Skip to content

Commit

Permalink
Fix constant string parameter.
Browse files Browse the repository at this point in the history
The methode Warning of ScriptInterpreter is now const compliant.

Signed-off-by: XoD <xoddark@gmail.com>
  • Loading branch information
XoD committed Dec 19, 2011
1 parent a81ddd2 commit ee1ad73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neo/d3xp/script/Script_Interpreter.cpp
Expand Up @@ -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 ];

Expand Down
2 changes: 1 addition & 1 deletion neo/d3xp/script/Script_Interpreter.h
Expand Up @@ -94,7 +94,7 @@ class idInterpreter {
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 );
Expand Down

0 comments on commit ee1ad73

Please sign in to comment.