Skip to content

Commit 3d54960

Browse files
committed
review
1 parent eaa2585 commit 3d54960

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/Vcl.DamDialog.pas

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ procedure TFrmDamDialogDyn.BuildButtons;
382382
I: Integer;
383383
Btn: TButton;
384384
Names: array[1..3] of string;
385-
BtnText: string;
386385
begin
387386
case DamMsg.Buttons of
388387
dbOne, dbOK: NumButtons := 1;
@@ -408,11 +407,9 @@ procedure TFrmDamDialogDyn.BuildButtons;
408407

409408
for I := 1 to NumButtons do
410409
begin
411-
BtnText := Names[I];
412-
413410
Btn := TButton.Create(Self);
414411
Btn.Parent := BoxFloatBtns;
415-
Btn.{$IFDEF FMX}Text{$ELSE}Caption{$ENDIF} := BtnText;
412+
SetButtonText(Btn, Names[I]);
416413
Btn.OnClick := OnBtnClick;
417414
Btn.Tag := I;
418415
{$IFDEF FMX}

0 commit comments

Comments
 (0)