Ignore:
Timestamp:
Sep 10, 2022, 6:24:58 PM (2 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/PersistentData/Backend/UPDClientMemory.pas

    r138 r142  
    1919    function SearchObject(Id: Integer): TObjectProxy;
    2020  public
    21     Objects: TObjectList<TObjectProxy>;
     21    Objects: TObjectProxies;
    2222    procedure ObjectLoad(AObject: TObjectProxy); override;
    2323    procedure ObjectSave(AObject: TObjectProxy); override;
     
    9696    else begin
    9797      AObject.Id := GetNewObjectId;
    98       Obj := TObjectProxy(Objects.Add(TObjectProxy.Create));
     98      Obj := Objects.AddProxy;
    9999      Obj.Assign(AObject);
    100100    end;
     
    173173begin
    174174  inherited;
    175   Objects := TObjectList<TObjectProxy>.Create;
     175  Objects := TObjectProxies.Create;
    176176  BackendName := 'Memory';
    177177end;
     
    179179destructor TPDClientMemory.Destroy;
    180180begin
    181   Objects.Free;
     181  FreeAndNil(Objects);
    182182  inherited;
    183183end;
     
    185185procedure TPDClientMemory.Connect;
    186186begin
    187   inherited Connect;
     187  inherited;
    188188end;
    189189
    190190procedure TPDClientMemory.Disconnect;
    191191begin
    192   inherited Disconnect;
     192  inherited;
    193193end;
    194194
Note: See TracChangeset for help on using the changeset viewer.