@@ -836,7 +836,7 @@ TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
836836 function RegisterHelperType (APyObjectClass : TPyObjectClass) : TPythonType;
837837 function RegisterFunction (AFuncName : PAnsiChar; AFunc : PyCFunction; ADocString : PAnsiChar ): PPyMethodDef; overload;
838838 function RegisterFunction (AFuncName : PAnsiChar; AFunc : TDelphiMethod; ADocString : PAnsiChar ): PPyMethodDef; overload;
839- function GetHelperType (TypeName : string) : TPythonType;
839+ function GetHelperType (const TypeName : string) : TPythonType;
840840 // Function that provides a Python object wrapping an object
841841 function Wrap (AObj : TObject; AOwnership: TObjectOwnership = soReference) : PPyObject;
842842 { $IFDEF EXTENDED_RTTI}
@@ -845,7 +845,7 @@ TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
845845 // Function that provides a Python object wrapping an interface
846846 // Note the the interface must be compiled in {$M+} mode and have a guid
847847 // Usage: WrapInterface(TValue.From(YourInterfaceReference))
848- function WrapInterface (IValue: TValue): PPyObject;
848+ function WrapInterface (const IValue: TValue): PPyObject;
849849 { $ENDIF}
850850 // properties
851851 property EventHandlers : TEventHandlers read fEventHandlerList;
@@ -1892,7 +1892,7 @@ function GetRttiAttr(ParentAddr: Pointer; ParentType: TRttiStructuredType;
18921892end ;
18931893
18941894function SetRttiAttr (const ParentAddr: Pointer; ParentType: TRttiStructuredType;
1895- AttrName: string; Value : PPyObject; PyDelphiWrapper: TPyDelphiWrapper;
1895+ const AttrName: string; Value : PPyObject; PyDelphiWrapper: TPyDelphiWrapper;
18961896 out ErrMsg: string): Boolean;
18971897var
18981898 Prop: TRttiProperty;
@@ -3562,7 +3562,7 @@ procedure TPyDelphiWrapper.Finalize;
35623562 fEventHandlerList.Clear;
35633563end ;
35643564
3565- function TPyDelphiWrapper.GetHelperType (TypeName: string): TPythonType;
3565+ function TPyDelphiWrapper.GetHelperType (const TypeName: string): TPythonType;
35663566var
35673567 Index : integer;
35683568begin
@@ -3780,7 +3780,7 @@ function TPyDelphiWrapper.WrapRecord(Address: Pointer; Typ: TRttiStructuredType)
37803780 end ;
37813781end ;
37823782
3783- function TPyDelphiWrapper.WrapInterface (IValue: TValue): PPyObject;
3783+ function TPyDelphiWrapper.WrapInterface (const IValue: TValue): PPyObject;
37843784var
37853785 PythonType: TPythonType;
37863786 Address: Pointer;
0 commit comments