Linux/GCC Compat(tm)

This was SVN commit r1284.
This commit is contained in:
olsner
2004-11-07 21:30:47 +00:00
parent 5ab0be984b
commit 3136791492
29 changed files with 83 additions and 50 deletions
+3 -2
View File
@@ -164,7 +164,7 @@ template<typename T, bool ReadOnly> class CJSProperty : public IJSProperty
public:
CJSProperty( T* Data, IJSObject* Owner = NULL, bool AllowsInheritance = false, IJSObject::NotifyFn Update = NULL, IJSObject::NotifyFn Freshen = NULL )
{
assert( !( !m_Owner && ( Freshen || Update ) ) ); // Bad programmer.
assert( !( !Owner && ( Freshen || Update ) ) ); // Bad programmer.
m_Data = Data;
m_Owner = Owner;
m_AllowsInheritance = AllowsInheritance;
@@ -336,7 +336,8 @@ public:
static void ScriptingInit( const char* ClassName, JSNative Constructor = NULL, uintN ConstructorMinArgs = 0 )
{
JSFunctionSpec* JSI_methods = new JSFunctionSpec[ m_Methods.size() + 1 ];
for( unsigned int MethodID = 0; MethodID < m_Methods.size(); MethodID++ )
unsigned int MethodID;
for( MethodID = 0; MethodID < m_Methods.size(); MethodID++ )
JSI_methods[MethodID] = m_Methods[MethodID];
JSI_methods[MethodID].name = 0;