Fix tons of compiler warnings

mostly -Wreorder, use const char* instead of char* for "static strings",
fix inappropriate usage of NULL (e.g. instead of '\0' or (int)0)
This commit is contained in:
Daniel Gibson 2012-12-11 23:48:55 +01:00
parent b848312904
commit 9eeea7adf3
50 changed files with 112 additions and 101 deletions

View file

@ -64,7 +64,7 @@ idSWFScriptObject::swfNamedVar_t& idSWFScriptObject::swfNamedVar_t::operator=( c
idSWFScriptObject::idSWFScriptObject
========================
*/
idSWFScriptObject::idSWFScriptObject() : prototype( NULL ), refCount( 1 ), noAutoDelete( false ), objectType( SWF_OBJECT_OBJECT )
idSWFScriptObject::idSWFScriptObject() : refCount( 1 ), noAutoDelete( false ), prototype( NULL ), objectType( SWF_OBJECT_OBJECT )
{
data.sprite = NULL;
data.text = NULL;
@ -694,4 +694,4 @@ void idSWFScriptObject::PrintToConsole() const
{
idLib::Printf( "No subelements\n" );
}
}
}