Changeset 142 for trunk/Packages/PersistentData/Backend/UPDClientMemory.pas
- Timestamp:
- Sep 10, 2022, 6:24:58 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/PersistentData/Backend/UPDClientMemory.pas
r138 r142 19 19 function SearchObject(Id: Integer): TObjectProxy; 20 20 public 21 Objects: TObject List<TObjectProxy>;21 Objects: TObjectProxies; 22 22 procedure ObjectLoad(AObject: TObjectProxy); override; 23 23 procedure ObjectSave(AObject: TObjectProxy); override; … … 96 96 else begin 97 97 AObject.Id := GetNewObjectId; 98 Obj := TObjectProxy(Objects.Add(TObjectProxy.Create));98 Obj := Objects.AddProxy; 99 99 Obj.Assign(AObject); 100 100 end; … … 173 173 begin 174 174 inherited; 175 Objects := TObject List<TObjectProxy>.Create;175 Objects := TObjectProxies.Create; 176 176 BackendName := 'Memory'; 177 177 end; … … 179 179 destructor TPDClientMemory.Destroy; 180 180 begin 181 Objects.Free;181 FreeAndNil(Objects); 182 182 inherited; 183 183 end; … … 185 185 procedure TPDClientMemory.Connect; 186 186 begin 187 inherited Connect;187 inherited; 188 188 end; 189 189 190 190 procedure TPDClientMemory.Disconnect; 191 191 begin 192 inherited Disconnect;192 inherited; 193 193 end; 194 194
Note:
See TracChangeset
for help on using the changeset viewer.