Changeset 346 for trunk/ItemList.pas
- Timestamp:
- Dec 25, 2024, 11:04:56 AM (28 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ItemList.pas
r345 r346 184 184 while Count < Source.Count do AddItem(''); 185 185 for I := 0 to Count - 1 do 186 TItem(Items[I]).Assign(Source.Items[I]);186 Items[I].Assign(Source.Items[I]); 187 187 end; 188 188 … … 201 201 function TItemList<T>.AddItem(Name: string): T; 202 202 begin 203 Result := T.Create; 204 Result.Name := Name; 203 Result := CreateItem(Name); 205 204 Result.Id := GetNewId; 206 205 Add(Result); … … 253 252 end; 254 253 255 function TItemList<T>.QueryInterface( constrefiid: tguid; out obj): LongInt;256 stdcall;254 function TItemList<T>.QueryInterface({$IFDEF FPC_HAS_CONSTREF}constref{$ELSE}const{$ENDIF} iid: tguid; out obj): LongInt; 255 {$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}; 257 256 begin 258 257 Result := 0; 259 258 end; 260 259 261 function TItemList<T>._AddRef: LongInt; stdcall;260 function TItemList<T>._AddRef: LongInt; {$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}; 262 261 begin 263 262 Result := 0; 264 263 end; 265 264 266 function TItemList<T>._Release: LongInt; stdcall;265 function TItemList<T>._Release: LongInt; {$IFNDEF WINDOWS}cdecl{$ELSE}stdcall{$ENDIF}; 267 266 begin 268 267 Result := 0;
Note:
See TracChangeset
for help on using the changeset viewer.