mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 12:13:30 +01:00
IDE: fixed uninitialized function results, bug #15423
git-svn-id: trunk@23274 -
This commit is contained in:
parent
f265272e57
commit
e479626b83
@ -11199,7 +11199,9 @@ begin
|
||||
AnUnitInfo:=AFile as TUnitInfo;
|
||||
AForm:=GetDesignerFormOfSource(AnUnitInfo,LoadForm);
|
||||
if AForm<>nil then
|
||||
Result:=AForm.Designer;
|
||||
Result:=AForm.Designer
|
||||
else
|
||||
Result:=nil;
|
||||
end;
|
||||
|
||||
procedure TMainIDE.GetObjectInspectorUnit(
|
||||
@ -12540,7 +12542,9 @@ function TMainIDE.UnitDependenciesViewGetProjectMainFilename(Sender: TObject
|
||||
): string;
|
||||
begin
|
||||
if Project1.MainUnitID>=0 then
|
||||
Result:=Project1.MainUnitInfo.Filename;
|
||||
Result:=Project1.MainUnitInfo.Filename
|
||||
else
|
||||
Result:='';
|
||||
end;
|
||||
|
||||
procedure TMainIDE.UnitDependenciesViewOpenFile(Sender: TObject;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user