|
@@ -17,7 +17,7 @@ type
|
|
private
|
|
private
|
|
refcount: integer;
|
|
refcount: integer;
|
|
public
|
|
public
|
|
- function QueryInterface(const iid : tguid;out obj) : Hresult;stdcall;
|
|
|
|
|
|
+ function QueryInterface(constref iid : tguid;out obj) : Hresult;stdcall;
|
|
function _AddRef : longint;stdcall;
|
|
function _AddRef : longint;stdcall;
|
|
function _Release : longint;stdcall;
|
|
function _Release : longint;stdcall;
|
|
end;
|
|
end;
|
|
@@ -25,7 +25,7 @@ type
|
|
var
|
|
var
|
|
called: Boolean = False;
|
|
called: Boolean = False;
|
|
|
|
|
|
-function TTest.QueryInterface(const IID: TGUID; out Obj): Hresult; stdcall;
|
|
|
|
|
|
+function TTest.QueryInterface(constref IID: TGUID; out Obj): Hresult; stdcall;
|
|
begin
|
|
begin
|
|
called := true;
|
|
called := true;
|
|
if getinterface(iid,obj) then
|
|
if getinterface(iid,obj) then
|