Ver Fonte

* trtti_attribute_list.bind already checks whether the dangling attribute list is assigned or not

git-svn-id: trunk@42395 -
svenbarth há 6 anos atrás
pai
commit
402728239f
2 ficheiros alterados com 2 adições e 8 exclusões
  1. 1 4
      compiler/pdecl.pas
  2. 1 4
      compiler/pdecobj.pas

+ 1 - 4
compiler/pdecl.pas

@@ -1050,10 +1050,7 @@ implementation
 
 
                     { If there are attribute-properties available, bind them to
                     { If there are attribute-properties available, bind them to
                       this object }
                       this object }
-                    if assigned(rtti_attrs_def) then
-                      begin
-                        trtti_attribute_list.bind(rtti_attrs_def,tobjectdef(hdef).rtti_attribute_list);
-                      end;
+                    trtti_attribute_list.bind(rtti_attrs_def,tobjectdef(hdef).rtti_attribute_list);
 
 
                     { In case of an objcclass, verify that all methods have a message
                     { In case of an objcclass, verify that all methods have a message
                       name set. We only check this now, because message names can be set
                       name set. We only check this now, because message names can be set

+ 1 - 4
compiler/pdecobj.pas

@@ -214,10 +214,7 @@ implementation
               Message(parser_e_enumerator_identifier_required);
               Message(parser_e_enumerator_identifier_required);
             consume(_SEMICOLON);
             consume(_SEMICOLON);
           end;
           end;
-        if assigned(rtti_attrs_def) then
-          begin
-            trtti_attribute_list.bind(rtti_attrs_def,p.rtti_attribute_list);
-          end;
+        trtti_attribute_list.bind(rtti_attrs_def,p.rtti_attribute_list);
 
 
         { hint directives, these can be separated by semicolons here,
         { hint directives, these can be separated by semicolons here,
           that needs to be handled here with a loop (PFV) }
           that needs to be handled here with a loop (PFV) }