Skip to content

Fixing comment and typos #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Source/WrapDelphi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ TPyDelphiWrapper = class(TEngineClient, IFreeNotificationSubscriber)
// Note the the interface must be compiled in {$M+} mode and have a guid
// Usage: WrapInterface(TValue.From(YourInterfaceReference))
// Warning: WrapInterface represents a weak (uncounted) reference!
// Use WrapInterfaceCopy to retrieve a normal counted reference
// Use ACopy = True to retrieve a normal counted reference
// that will keep the interface alive as long as python has a
// reference to it.
function WrapInterface(const IValue: TValue; const ACopy: boolean = false): PPyObject;
Expand Down Expand Up @@ -3341,8 +3341,8 @@ procedure TPyRttiObject.SetValueAndType(const AValue: TValue;

function TPyPascalRecord.GetValue: TValue;
begin
if Assigned(fCopy) then
Result := fCopy^
if Assigned(FCopy) then
Result := FCopy^
else
TValue.Make(fAddr, RttiType.Handle, Result);
end;
Expand All @@ -3358,8 +3358,8 @@ class procedure TPyPascalRecord.SetupType(PythonType: TPythonType);

function TPyPascalInterface.GetValue: TValue;
begin
if Assigned(fCopy) then
Result := fCopy^
if Assigned(FCopy) then
Result := FCopy^
else
TValue.Make(@fAddr, RttiType.Handle, Result);
end;
Expand Down