Changeset 67 for trunk/Compiler/Analyze
- Timestamp:
- Jul 19, 2012, 8:44:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/Analyze/UAnalyzerPascal.pas
r65 r67 155 155 try 156 156 Expressions := TListExpression.Create; 157 Expressions.OwnsObjects := False;158 157 Expressions.Add(TExpression.Create); 159 158 with SourceCode do begin … … 180 179 TExpression(Expressions[I - 1]).SubItems.Last := Expressions[I]; 181 180 TExpression(Expressions[I + 1]).SubItems.First := Expressions[I]; 181 Expressions.OwnsObjects := False; 182 Expressions[I] := nil; 183 Expressions.OwnsObjects := True; 182 184 Expressions.Delete(I); 183 185 end else Inc(I); 184 186 end; 185 187 end; 186 if Assigned(TExpression(Expressions.First).SubItems.Last) then 188 if Assigned(TExpression(Expressions.First).SubItems.Last) then begin 187 189 Assign(TExpression(TExpression(Expressions.First).SubItems.Last)); 190 SubItems.OwnsObjects := True; 191 TExpression(TExpression(Expressions.First).SubItems.Last).SubItems.OwnsObjects := False; 192 TExpression(Expressions.First).SubItems.Last.Free; 193 end; 188 194 TExpression(Expressions.First).SubItems.Last := nil; 189 195 if Expressions.Count > 1 then
Note:
See TracChangeset
for help on using the changeset viewer.