Browse Source

* move Handle property to TRttiObject (Delphi compatible and is probably also used for the caching mechanism)

git-svn-id: trunk@37414 -
svenbarth 7 years ago
parent
commit
49fc13ea73
1 changed files with 3 additions and 3 deletions
  1. 3 3
      packages/rtl-objpas/src/inc/rtti.pp

+ 3 - 3
packages/rtl-objpas/src/inc/rtti.pp

@@ -154,8 +154,10 @@ type
   { TRttiObject }
   { TRttiObject }
 
 
   TRttiObject = class abstract
   TRttiObject = class abstract
+  protected
+    function GetHandle: Pointer; virtual; abstract;
   public
   public
-
+    property Handle: Pointer read GetHandle;
   end;
   end;
 
 
   { TRttiNamedObject }
   { TRttiNamedObject }
@@ -163,10 +165,8 @@ type
   TRttiNamedObject = class(TRttiObject)
   TRttiNamedObject = class(TRttiObject)
   protected
   protected
     function GetName: string; virtual;
     function GetName: string; virtual;
-    function GetHandle: Pointer; virtual; abstract;
   public
   public
     property Name: string read GetName;
     property Name: string read GetName;
-    property Handle: Pointer read GetHandle;
   end;
   end;
 
 
   { TRttiType }
   { TRttiType }