Changeset 75 for trunk/Compiler/SourceConvertor.pas
- Timestamp:
- Jun 4, 2024, 12:22:49 AM (5 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/SourceConvertor.pas
r74 r75 1 unit USourceConvertor; 2 3 {$mode delphi}{$H+} 1 unit SourceConvertor; 4 2 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, SpecializedList;6 Classes, SysUtils, Generics.Collections; 9 7 10 8 type … … 22 20 23 21 TSourceText = class(TSource) 24 Code: T ListString;22 Code: TStringList; 25 23 constructor Create; 26 24 destructor Destroy; override; … … 28 26 29 27 TSourceList = class 30 Items: T ListObject; // TListObject<TSource>28 Items: TObjectList<TSource>; 31 29 end; 32 30 … … 57 55 procedure TConvertor.Convert(Input, Output: TSourceList); 58 56 begin 59 60 57 end; 61 58 … … 74 71 constructor TSourceText.Create; 75 72 begin 76 Code := T ListString.Create;73 Code := TStringList.Create; 77 74 end; 78 75 79 76 destructor TSourceText.Destroy; 80 77 begin 81 Code.Free;82 inherited Destroy;78 FreeAndNil(Code); 79 inherited; 83 80 end; 84 81
Note:
See TracChangeset
for help on using the changeset viewer.