Fix compiler warnings

refs #9081
This commit is contained in:
Gunnar Beutner 2015-08-17 09:34:32 +02:00
parent bb6db7978a
commit ff974d4eee
2 changed files with 4 additions and 3 deletions

View File

@ -99,16 +99,17 @@ Object::Ptr Type::GetPrototype(void) const
void Type::SetPrototype(const Object::Ptr& object)
{
m_Prototype = object;
NotifyField(0);
}
void Type::SetField(int id, const Value& value)
void Type::SetField(int id, const Value& value, bool suppress_events, const Value& cookie)
{
if (id == 0) {
SetPrototype(value);
return;
}
Object::SetField(id, value);
Object::SetField(id, value, suppress_events, cookie);
}
Value Type::GetField(int id) const

View File

@ -94,7 +94,7 @@ public:
static void Register(const Type::Ptr& type);
static Type::Ptr GetByName(const String& name);
virtual void SetField(int id, const Value& value);
virtual void SetField(int id, const Value& value, bool suppress_events = false, const Value& cookie = Empty);
virtual Value GetField(int id) const;
virtual std::vector<String> GetLoadDependencies(void) const;