]> granicus.if.org Git - icinga2/commitdiff
Fix compiler warnings
authorGunnar Beutner <gunnar@beutner.name>
Mon, 17 Aug 2015 07:34:32 +0000 (09:34 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 17 Aug 2015 08:09:15 +0000 (10:09 +0200)
refs #9081

lib/base/type.cpp
lib/base/type.hpp

index 02c07939f8946d6910bfcf50339d0407d30d917d..aa03bb38dd527e0701485cde2f265e608965e33b 100644 (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
index c373be00ae057cc8816bba38cc44e1b474f44e71..1017e4bb0f25648240673a5d7ef99ac369ce3590 100644 (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;