Ignore:
Timestamp:
Jun 4, 2024, 12:22:49 AM (4 months ago)
Author:
chronos
Message:
  • Modified: Removed U prefix from unit names.
  • Modified: Updated Common package.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/SourceConvertor.pas

    r74 r75  
    1 unit USourceConvertor;
    2 
    3 {$mode delphi}{$H+}
     1unit SourceConvertor;
    42
    53interface
    64
    75uses
    8   Classes, SysUtils, SpecializedList;
     6  Classes, SysUtils, Generics.Collections;
    97
    108type
     
    2220
    2321  TSourceText = class(TSource)
    24     Code: TListString;
     22    Code: TStringList;
    2523    constructor Create;
    2624    destructor Destroy; override;
     
    2826
    2927  TSourceList = class
    30     Items: TListObject; // TListObject<TSource>
     28    Items: TObjectList<TSource>;
    3129  end;
    3230
     
    5755procedure TConvertor.Convert(Input, Output: TSourceList);
    5856begin
    59 
    6057end;
    6158
     
    7471constructor TSourceText.Create;
    7572begin
    76   Code := TListString.Create;
     73  Code := TStringList.Create;
    7774end;
    7875
    7976destructor TSourceText.Destroy;
    8077begin
    81   Code.Free;
    82   inherited Destroy;
     78  FreeAndNil(Code);
     79  inherited;
    8380end;
    8481
Note: See TracChangeset for help on using the changeset viewer.