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:
1 parent
15597777fc
commit
a81ddd228d
2 files changed
+2
-2
No files matched your search
@@ -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 ];
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user