Qt,Qt5: call inherited Create for TStrings

git-svn-id: trunk@60076 -
This commit is contained in:
zeljko 2019-01-13 20:45:45 +00:00
parent 361e42f65a
commit e7abcc7ff1
2 changed files with 4 additions and 0 deletions

View File

@ -4765,12 +4765,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

@ -4762,12 +4762,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;