Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
refs #9081
  • Loading branch information
gunnarbeutner committed Aug 17, 2015
1 parent bb6db79 commit ff974d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/base/type.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/base/type.hpp
Expand Up @@ -94,7 +94,7 @@ class I2_BASE_API Type : public Object
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;
Expand Down

0 comments on commit ff974d4

Please sign in to comment.