Qt,Qt5: call inherited Create for TStrings.

git-svn-id: branches/fixes_2_0@60182 -
This commit is contained in:
mattias 2019-01-24 09:44:26 +00:00
parent 651746a306
commit b21c0f8f75
2 changed files with 4 additions and 0 deletions

View File

@ -4764,12 +4764,14 @@ end;
constructor TQtStringList.Create; constructor TQtStringList.Create;
begin begin
inherited Create;
FHandle := QStringList_create(); FHandle := QStringList_create();
FOwnHandle := True; FOwnHandle := True;
end; end;
constructor TQtStringList.Create(Source: QStringListH); constructor TQtStringList.Create(Source: QStringListH);
begin begin
inherited Create;
FHandle := Source; FHandle := Source;
FOwnHandle := False; FOwnHandle := False;
end; end;

View File

@ -4761,12 +4761,14 @@ end;
constructor TQtStringList.Create; constructor TQtStringList.Create;
begin begin
inherited Create;
FHandle := QStringList_create(); FHandle := QStringList_create();
FOwnHandle := True; FOwnHandle := True;
end; end;
constructor TQtStringList.Create(Source: QStringListH); constructor TQtStringList.Create(Source: QStringListH);
begin begin
inherited Create;
FHandle := Source; FHandle := Source;
FOwnHandle := False; FOwnHandle := False;
end; end;