TAChart: Override TLinkedCharts.Add with better return type

git-svn-id: trunk@38711 -
This commit is contained in:
ask 2012-09-17 07:49:32 +00:00
parent fcf2372934
commit 85bdf70d19

View File

@ -28,6 +28,7 @@ type
function GetOwner: TPersistent; override;
public
constructor Create(AOwner: TComponent);
function Add: TLinkedChart; // Should be inline, but FPC 2.6 miscompiles it.
end;
TChartExtendLinkMode = (elmXY, elmOnlyX, elmOnlyY);
@ -62,6 +63,11 @@ end;
{ TLinkedCharts }
function TLinkedCharts.Add: TLinkedChart;
begin
Result := TLinkedChart(inherited Add);
end;
constructor TLinkedCharts.Create(AOwner: TComponent);
begin
inherited Create(TLinkedChart);