mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 10:07:19 +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;
|
function GetOwner: TPersistent; override;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent);
|
constructor Create(AOwner: TComponent);
|
||||||
|
function Add: TLinkedChart; // Should be inline, but FPC 2.6 miscompiles it.
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TChartExtendLinkMode = (elmXY, elmOnlyX, elmOnlyY);
|
TChartExtendLinkMode = (elmXY, elmOnlyX, elmOnlyY);
|
||||||
@ -62,6 +63,11 @@ end;
|
|||||||
|
|
||||||
{ TLinkedCharts }
|
{ TLinkedCharts }
|
||||||
|
|
||||||
|
function TLinkedCharts.Add: TLinkedChart;
|
||||||
|
begin
|
||||||
|
Result := TLinkedChart(inherited Add);
|
||||||
|
end;
|
||||||
|
|
||||||
constructor TLinkedCharts.Create(AOwner: TComponent);
|
constructor TLinkedCharts.Create(AOwner: TComponent);
|
||||||
begin
|
begin
|
||||||
inherited Create(TLinkedChart);
|
inherited Create(TLinkedChart);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user