File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed 
PythonForDelphi/Components/Sources/Core Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -486,9 +486,15 @@   TPyDelphiIterator = class(TPyObject)
486486  TPyInterfacedObject = class (TPyObject, IInterface)
487487  private 
488488    //  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} 
489494    function  QueryInterface (const  IID: TGUID; out Obj): HResult; stdcall;
490495    function  _AddRef : Integer; stdcall;
491496    function  _Release : Integer; stdcall;
497+     { $ENDIF} 
492498  end ;
493499
494500  { 
@@ -1393,7 +1399,7 @@ function TPyInterfacedObject._Release: Integer;
13931399  Result := -1 ;
13941400end ;
13951401
1396- function  TPyInterfacedObject.QueryInterface (const  IID: TGUID;
1402+ function  TPyInterfacedObject.QueryInterface ({ $IFDEF FPC_HAS_CONSTREF } constref { $ELSE } const { $ENDIF }   IID: TGUID;
13971403  out Obj): HResult;
13981404begin 
13991405  if  GetInterface(IID, Obj) then 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments