File tree 1 file changed +7
-1
lines changed
PythonForDelphi/Components/Sources/Core
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -486,9 +486,15 @@ TPyDelphiIterator = class(TPyObject)
486
486
TPyInterfacedObject = class (TPyObject, IInterface)
487
487
private
488
488
// implementation of interface IInterface
489
+ { $IFDEF FPC_HAS_CONSTREF}
490
+ function QueryInterface (constref IID: TGUID; out Obj): HResult; { $IFDEF MSWINDOWS} stdcall{ $ELSE} cdecl{ $ENDIF} ;
491
+ function _AddRef : Integer; { $IFDEF MSWINDOWS} stdcall{ $ELSE} cdecl{ $ENDIF} ;
492
+ function _Release : Integer; { $IFDEF MSWINDOWS} stdcall{ $ELSE} cdecl{ $ENDIF} ;
493
+ { $ELSE}
489
494
function QueryInterface (const IID: TGUID; out Obj): HResult; stdcall;
490
495
function _AddRef : Integer; stdcall;
491
496
function _Release : Integer; stdcall;
497
+ { $ENDIF}
492
498
end ;
493
499
494
500
{
@@ -1393,7 +1399,7 @@ function TPyInterfacedObject._Release: Integer;
1393
1399
Result := -1 ;
1394
1400
end ;
1395
1401
1396
- function TPyInterfacedObject.QueryInterface (const IID: TGUID;
1402
+ function TPyInterfacedObject.QueryInterface ({ $IFDEF FPC_HAS_CONSTREF } constref { $ELSE } const { $ENDIF } IID: TGUID;
1397
1403
out Obj): HResult;
1398
1404
begin
1399
1405
if GetInterface(IID, Obj) then
You can’t perform that action at this time.
0 commit comments