File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ interface
3939 TDefaultGenericInterface = Generics.Defaults.TDefaultGenericInterface;
4040
4141 TComparer<T> = record
42- class function Default : IComparer<T>; static; { $IFDEF DELPHIX_TOKYO_UP } unsafe; { $ENDIF }
42+ class function Default : IComparer<T>; static;
4343 end ;
4444
4545 TEqualityComparer<T> = record
46- class function Default : IEqualityComparer<T>; static; { $IFDEF DELPHIX_TOKYO_UP } unsafe; { $ENDIF }
46+ class function Default : IEqualityComparer<T>; static;
4747 end ;
4848
4949 THashFunction = function(const key; len: Cardinal; seed: Integer = 0 ): Integer;
@@ -91,20 +91,12 @@ function SameGuid(const left, right: TGUID): Boolean;
9191
9292class function TComparer <T>.Default: IComparer<T>;
9393begin
94- { $IFDEF DELPHIX_TOKYO_UP}
95- Pointer(Result) := _LookupVtableInfo(giComparer, TypeInfo(T), SizeOf(T));
96- { $ELSE}
9794 Result := IComparer<T>(_LookupVtableInfo(giComparer, TypeInfo(T), SizeOf(T)));
98- { $ENDIF}
9995end ;
10096
10197class function TEqualityComparer <T>.Default: IEqualityComparer<T>;
10298begin
103- { $IFDEF DELPHIX_TOKYO_UP}
104- Pointer(Result) := _LookupVtableInfo(giEqualityComparer, TypeInfo(T), SizeOf(T));
105- { $ELSE}
10699 Result := IEqualityComparer<T>(_LookupVtableInfo(giEqualityComparer, TypeInfo(T), SizeOf(T)));
107- { $ENDIF}
108100end ;
109101
110102type
You can’t perform that action at this time.
0 commit comments