Sfoglia il codice sorgente

Immediately set the capacity

Alligator-1 1 anno fa
parent
commit
ffaeec243a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      compiler/pgenutil.pas

+ 1 - 0
compiler/pgenutil.pas

@@ -2905,6 +2905,7 @@ uses
         list:=tfpobjectlist.create(false);
         readdlist:=tfpobjectlist.create(false);
 
+        list.Capacity:=current_module.pendingspecializations.Count;
         for i:=0 to current_module.pendingspecializations.Count-1 do
           list.add(current_module.pendingspecializations.Items[i]);