Fix constant string parameter.

The methode Error of ScriptInterpreter is now const compliant.

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

View File

@@ -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 ];

View File

@@ -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;