/* fetch all objects and dump them */
ConfigType *ctype = dynamic_cast<ConfigType *>(type.get());
+ VERIFY(ctype);
- if (ctype) {
- for (const ConfigObject::Ptr& object : ctype->GetObjects()) {
- SendConfigUpdate(object, typeName);
- SendStatusUpdate(object, typeName);
- }
+ for (const ConfigObject::Ptr& object : ctype->GetObjects()) {
+ SendConfigUpdate(object, typeName);
+ SendStatusUpdate(object, typeName);
}
}
}
Dictionary::Ptr resultAttrs = new Dictionary();
- for (int& fid : fids)
- {
+ for (int& fid : fids) {
Field field = type->GetFieldInfo(fid);
if ((field.Attributes & fieldType) == 0)