mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 14:37:26 +01:00
TAChart: Override TLinkedCharts.Add with better return type
git-svn-id: trunk@38711 -
This commit is contained in:
parent
fcf2372934
commit
85bdf70d19
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user