Преглед изворни кода

Immediately set the capacity

Alligator-1 пре 1 година
родитељ
комит
ffaeec243a
1 измењених фајлова са 1 додато и 0 уклоњено
  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]);