mirror of https://gitlab.com/basile.b/dexed.git
docking, initialize a `var` parameter used as result
it's not `out` so there is no guarantee that the caller has initialized it.
This commit is contained in:
parent
7398bf9609
commit
b4ae83569f
|
@ -1620,6 +1620,7 @@ procedure TMainForm.anchorDockingAddControlEvent(Sender: TObject; aName: string;
|
||||||
var AControl: TControl; DoDisableAutoSizing: boolean);
|
var AControl: TControl; DoDisableAutoSizing: boolean);
|
||||||
var w : TDexedWidget;
|
var w : TDexedWidget;
|
||||||
begin
|
begin
|
||||||
|
AControl := nil;
|
||||||
for w in fWidgList do
|
for w in fWidgList do
|
||||||
if w.name = aName then
|
if w.name = aName then
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue