Skip to content

Commit

Permalink
Cleanup variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Nov 18, 2024
1 parent dbbb08d commit 9d8d786
Show file tree
Hide file tree
Showing 2 changed files with 183 additions and 167 deletions.
11 changes: 10 additions & 1 deletion Projects/Src/Setup.ScriptFunc.HelperFunc.pas
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ procedure NoUninstallFuncError(const C: AnsiString); overload;
procedure OnlyUninstallFuncError(const C: AnsiString); overload;
function GetMainForm: TMainForm;
function GetWizardForm: TWizardForm;
function GetWizardFormHandle: HWND;
function GetUninstallProgressForm: TUninstallProgressForm;
function GetMsgBoxCaption: String;
procedure InitializeScaleBaseUnits;
Expand Down Expand Up @@ -121,7 +122,15 @@ function GetWizardForm: TWizardForm;
begin
Result := WizardForm;
if Result = nil then
InternalError('An attempt was made to access WizardForm before it has been created');
InternalError('An attempt was made to access WizardForm before it has been created');
end;

function GetWizardFormHandle: HWND;
begin
if Assigned(WizardForm) then
Result := WizardForm.Handle
else
Result := 0;
end;

function GetUninstallProgressForm: TUninstallProgressForm;
Expand Down
Loading

0 comments on commit 9d8d786

Please sign in to comment.