Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c73cb71

Browse files
committed
Removed warning.
1 parent 17a0a9d commit c73cb71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PythonForDelphi/Components/Sources/Core/WrapDelphi.pas

+3-3
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
15171517
Finally call inherited which calls PyObject_GenericGetAttr
15181518
*)
15191519
var
1520-
Name: ShortString;
1520+
Name: string;
15211521
{$IFNDEF FPC}
15221522
Info: PMethodInfoHeader;
15231523
{$ENDIF}
@@ -1526,7 +1526,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
15261526
begin
15271527
Result := nil;
15281528
if GetPythonEngine.PyString_Check(Key) then
1529-
Name := ShortString(GetPythonEngine.PyString_AsDelphiString(Key))
1529+
Name := GetPythonEngine.PyString_AsDelphiString(Key)
15301530
else
15311531
Name := '';
15321532

@@ -1554,7 +1554,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
15541554
else{$ENDIF} if Assigned(DelphiObject) and (Name <> '') then
15551555
begin
15561556
// Not a method, try a property.
1557-
PropInfo := GetPropInfo(DelphiObject, string(Name));
1557+
PropInfo := GetPropInfo(DelphiObject, Name);
15581558
if PropInfo <> nil then
15591559
begin
15601560
// we have a property

0 commit comments

Comments
 (0)