mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
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:
@@ -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 ];
|
||||||
|
|
||||||
|
|||||||
@@ -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 );
|
||||||
|
|||||||
Reference in New Issue
Block a user