mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
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:
@@ -425,7 +425,7 @@ idInterpreter::Error
|
|||||||
Aborts the currently executing function
|
Aborts the currently executing function
|
||||||
============
|
============
|
||||||
*/
|
*/
|
||||||
void idInterpreter::Error( char *fmt, ... ) const {
|
void idInterpreter::Error( const char *fmt, ... ) const {
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char text[ 1024 ];
|
char text[ 1024 ];
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public:
|
|||||||
int CurrentLine( void ) const;
|
int CurrentLine( void ) const;
|
||||||
const char *CurrentFile( 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 Warning( char *fmt, ... ) const id_attribute((format(printf,2,3)));
|
||||||
void DisplayInfo( void ) const;
|
void DisplayInfo( void ) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user