Diff for /parser3/src/classes/reflection.C between versions 1.57 and 1.58

version 1.57, 2016/09/26 20:38:33 version 1.58, 2016/09/27 21:11:18
Line 363  static void _uid(Request& r, MethodParam Line 363  static void _uid(Request& r, MethodParam
 }  }
   
 static void _delete(Request&, MethodParams& params) {  static void _delete(Request&, MethodParams& params) {
           Value* v=&params.as_no_junction(0, "param must be object or class, not junction");
         const String& key=params.as_string(1, "field name must be string");          const String& key=params.as_string(1, "field name must be string");
         if(HashStringValue* fields=params[0].get_fields()){  
                 fields->remove(key);          if(VObject* o=dynamic_cast<VObject*>(v)){
                   o->get_fields()->remove(key);
           } else if(VClass* c=dynamic_cast<VClass*>(v)){
                   HashStringProperty &p=*c->get_properties();
                   if(Property* property=p.get(key))
                           if(property->value)
                                   p.remove(key);
         }          }
 }  }
   

Removed from v.1.57  
changed lines
  Added in v.1.58


E-mail: