소스 검색

* fixed compiler errors in generics

master
Bergmann89 10 년 전
부모
커밋
bc4f3166a4
1개의 변경된 파일과 7개의 추가작업 그리고 4개의 파일을 삭제
  1. +7
    -4
      uutlGenerics.pas

+ 7
- 4
uutlGenerics.pas 파일 보기

@@ -572,6 +572,9 @@ type

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

uses
@@ -580,15 +583,15 @@ uses
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Helper////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
operator < (const i1, i2: TObject): Boolean; inline;
operator < (const i1, i2: TObject): Boolean;
begin
result := PtrUInt(i1) < PtrUInt(i2);
result := Pointer(i1) < Pointer(i2);
end;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
operator > (const i1, i2: TObject): Boolean; inline;
operator > (const i1, i2: TObject): Boolean;
begin
result := PtrUInt(i1) > PtrUInt(i2);
result := Pointer(i1) > Pointer(i2);
end;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


불러오는 중...
취소
저장