| @@ -572,6 +572,9 @@ type | |||||
| function utlFreeOrFinalize(var obj; const aTypeInfo: PTypeInfo; const aFreeObj: Boolean = true): Boolean; | function utlFreeOrFinalize(var obj; const aTypeInfo: PTypeInfo; const aFreeObj: Boolean = true): Boolean; | ||||
| operator < (const i1, i2: TObject): Boolean; inline; | |||||
| operator > (const i1, i2: TObject): Boolean; inline; | |||||
| implementation | implementation | ||||
| uses | uses | ||||
| @@ -580,15 +583,15 @@ uses | |||||
| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
| //Helper//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //Helper//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
| operator < (const i1, i2: TObject): Boolean; inline; | |||||
| operator < (const i1, i2: TObject): Boolean; | |||||
| begin | begin | ||||
| result := PtrUInt(i1) < PtrUInt(i2); | |||||
| result := Pointer(i1) < Pointer(i2); | |||||
| end; | end; | ||||
| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||
| operator > (const i1, i2: TObject): Boolean; inline; | |||||
| operator > (const i1, i2: TObject): Boolean; | |||||
| begin | begin | ||||
| result := PtrUInt(i1) > PtrUInt(i2); | |||||
| result := Pointer(i1) > Pointer(i2); | |||||
| end; | end; | ||||
| //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||||