Browse Source

* allow making of a TValue out of a raw interface

git-svn-id: trunk@36974 -
svenbarth 8 years ago
parent
commit
3b27c39934
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/rtl-objpas/src/inc/rtti.pp

+ 1 - 0
packages/rtl-objpas/src/inc/rtti.pp

@@ -557,6 +557,7 @@ begin
     tkRecord   : result.FData.FValueData := TValueDataIntImpl.CreateCopy(ABuffer, Result.TypeData^.RecSize, ATypeInfo, False);
     tkClass    : result.FData.FAsObject := PPointer(ABuffer)^;
     tkClassRef : result.FData.FAsClass := PClass(ABuffer)^;
+    tkInterfaceRaw : result.FData.FAsPointer := PPointer(ABuffer)^;
     tkInterface: result.FData.FValueData := TValueDataIntImpl.CreateRef(ABuffer, ATypeInfo, True);
     tkInt64    : result.FData.FAsSInt64 := PInt64(ABuffer)^;
     tkQWord    : result.FData.FAsUInt64 := PQWord(ABuffer)^;