@@ -836,7 +836,7 @@ TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
836
836
function RegisterHelperType (APyObjectClass : TPyObjectClass) : TPythonType;
837
837
function RegisterFunction (AFuncName : PAnsiChar; AFunc : PyCFunction; ADocString : PAnsiChar ): PPyMethodDef; overload;
838
838
function RegisterFunction (AFuncName : PAnsiChar; AFunc : TDelphiMethod; ADocString : PAnsiChar ): PPyMethodDef; overload;
839
- function GetHelperType (TypeName : string) : TPythonType;
839
+ function GetHelperType (const TypeName : string) : TPythonType;
840
840
// Function that provides a Python object wrapping an object
841
841
function Wrap (AObj : TObject; AOwnership: TObjectOwnership = soReference) : PPyObject;
842
842
{ $IFDEF EXTENDED_RTTI}
@@ -845,7 +845,7 @@ TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
845
845
// Function that provides a Python object wrapping an interface
846
846
// Note the the interface must be compiled in {$M+} mode and have a guid
847
847
// Usage: WrapInterface(TValue.From(YourInterfaceReference))
848
- function WrapInterface (IValue: TValue): PPyObject;
848
+ function WrapInterface (const IValue: TValue): PPyObject;
849
849
{ $ENDIF}
850
850
// properties
851
851
property EventHandlers : TEventHandlers read fEventHandlerList;
@@ -1892,7 +1892,7 @@ function GetRttiAttr(ParentAddr: Pointer; ParentType: TRttiStructuredType;
1892
1892
end ;
1893
1893
1894
1894
function SetRttiAttr (const ParentAddr: Pointer; ParentType: TRttiStructuredType;
1895
- AttrName: string; Value : PPyObject; PyDelphiWrapper: TPyDelphiWrapper;
1895
+ const AttrName: string; Value : PPyObject; PyDelphiWrapper: TPyDelphiWrapper;
1896
1896
out ErrMsg: string): Boolean;
1897
1897
var
1898
1898
Prop: TRttiProperty;
@@ -3562,7 +3562,7 @@ procedure TPyDelphiWrapper.Finalize;
3562
3562
fEventHandlerList.Clear;
3563
3563
end ;
3564
3564
3565
- function TPyDelphiWrapper.GetHelperType (TypeName: string): TPythonType;
3565
+ function TPyDelphiWrapper.GetHelperType (const TypeName: string): TPythonType;
3566
3566
var
3567
3567
Index : integer;
3568
3568
begin
@@ -3780,7 +3780,7 @@ function TPyDelphiWrapper.WrapRecord(Address: Pointer; Typ: TRttiStructuredType)
3780
3780
end ;
3781
3781
end ;
3782
3782
3783
- function TPyDelphiWrapper.WrapInterface (IValue: TValue): PPyObject;
3783
+ function TPyDelphiWrapper.WrapInterface (const IValue: TValue): PPyObject;
3784
3784
var
3785
3785
PythonType: TPythonType;
3786
3786
Address: Pointer;
0 commit comments