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/Target.pas

    r74 r75  
    1 unit UTarget;
    2 
    3 {$mode Delphi}{$H+}
     1unit Target;
    42
    53interface
    64
    75uses
    8   Classes, SysUtils, UProducer, UExecutor, SpecializedList;
     6  Classes, SysUtils, Producer, Executor, Generics.Collections;
    97
    108type
     
    1715    Producer: TProducer;
    1816    Executor: TExecutor;
    19     Compiler: TObject; //TCompiler
     17    Compiler: TObject; // TCompiler
    2018    constructor Create; virtual;
    2119    destructor Destroy; override;
     
    2422  TTargetClass = class of TTarget;
    2523
    26   { TListTarget }
     24  { TTargets }
    2725
    28   TListTarget = class(TListObject)
     26  TTargets = class(TObjectList<TTarget>)
    2927    function SearchBySysName(Name: string): TTarget;
    3028    procedure LoadToStrings(Strings: TStrings);
     
    4341destructor TTarget.Destroy;
    4442begin
    45   Producer.Free;
    46   Executor.Free;
    47   inherited Destroy;
     43  FreeAndNil(Producer);
     44  FreeAndNil(Executor);
     45  inherited;
    4846end;
    4947
    50 { TListTarget }
     48{ TTargets }
    5149
    52 function TListTarget.SearchBySysName(Name: string): TTarget;
     50function TTargets.SearchBySysName(Name: string): TTarget;
    5351var
    5452  I: Integer;
     
    6058end;
    6159
    62 procedure TListTarget.LoadToStrings(Strings: TStrings);
     60procedure TTargets.LoadToStrings(Strings: TStrings);
    6361var
    6462  I: Integer;
Note: See TracChangeset for help on using the changeset viewer.