Fix constant string parameter.

The methode Warning of ScriptInterpreter is now const compliant.

Signed-off-by: XoD <xoddark@gmail.com>
This commit is contained in:
XoD
2011-12-19 09:40:17 +01:00
parent a81ddd228d
commit ee1ad737ce
2 changed files with 2 additions and 2 deletions

View File

@@ -450,7 +450,7 @@ idInterpreter::Warning
Prints file and line number information with 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; va_list argptr;
char text[ 1024 ]; char text[ 1024 ];

View File

@@ -94,7 +94,7 @@ public:
const char *CurrentFile( void ) const; const char *CurrentFile( void ) const;
void Error( const 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 Warning( const char *fmt, ... ) const id_attribute((format(printf,2,3)));
void DisplayInfo( void ) const; void DisplayInfo( void ) const;
bool BeginMultiFrameEvent( idEntity *ent, const idEventDef *event ); bool BeginMultiFrameEvent( idEntity *ent, const idEventDef *event );