File tree 1 file changed +3
-3
lines changed
PythonForDelphi/Components/Sources/Core
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1517,7 +1517,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
1517
1517
Finally call inherited which calls PyObject_GenericGetAttr
1518
1518
*)
1519
1519
var
1520
- Name : ShortString ;
1520
+ Name : string ;
1521
1521
{ $IFNDEF FPC}
1522
1522
Info: PMethodInfoHeader;
1523
1523
{ $ENDIF}
@@ -1526,7 +1526,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
1526
1526
begin
1527
1527
Result := nil ;
1528
1528
if GetPythonEngine.PyString_Check(Key) then
1529
- Name := ShortString( GetPythonEngine.PyString_AsDelphiString(Key) )
1529
+ Name := GetPythonEngine.PyString_AsDelphiString(Key)
1530
1530
else
1531
1531
Name := ' ' ;
1532
1532
@@ -1554,7 +1554,7 @@ function TPyDelphiObject.GetAttrO(key: PPyObject): PPyObject;
1554
1554
else { $ENDIF} if Assigned(DelphiObject) and (Name <> ' ' ) then
1555
1555
begin
1556
1556
// Not a method, try a property.
1557
- PropInfo := GetPropInfo(DelphiObject, string( Name ) );
1557
+ PropInfo := GetPropInfo(DelphiObject, Name );
1558
1558
if PropInfo <> nil then
1559
1559
begin
1560
1560
// we have a property
You can’t perform that action at this time.
0 commit comments