if (object)
instance = object;
else
- instance = type->Instantiate();
+ instance = type->Instantiate(std::vector<Value>());
ObjectLock olock(input);
BOOST_FOREACH(const Dictionary::Pair& kv, input) {
String GetPluralName(void) const;
- Object::Ptr Instantiate(const std::vector<Value>& args = std::vector<Value>()) const;
+ Object::Ptr Instantiate(const std::vector<Value>& args) const;
bool IsAssignableFrom(const Type::Ptr& other) const;
if (check_config) {
try {
- ConfigObject::Ptr object = static_pointer_cast<ConfigObject>(utype->Instantiate());
+ ConfigObject::Ptr object = static_pointer_cast<ConfigObject>(utype->Instantiate(std::vector<Value>()));
/* temporarly set the object type for validation */
attrs->Set("type", utype->GetName());
Deserialize(object, attrs, false, FAConfig);
if (IsAbstract())
return ConfigObject::Ptr();
- ConfigObject::Ptr dobj = static_pointer_cast<ConfigObject>(type->Instantiate());
+ ConfigObject::Ptr dobj = static_pointer_cast<ConfigObject>(type->Instantiate(std::vector<Value>()));
dobj->SetDebugInfo(m_DebugInfo);
dobj->SetZoneName(m_Zone);
{
Type::Ptr t = Type::GetByName("PerfdataValue");
- Object::Ptr p = t->Instantiate();
+ Object::Ptr p = t->Instantiate(std::vector<Value>());
BOOST_CHECK(p);
}