IDE: formatting

git-svn-id: trunk@40836 -
This commit is contained in:
juha 2013-04-18 16:56:23 +00:00
parent 34906c6a9f
commit 2e6446193d
2 changed files with 5 additions and 7 deletions

View File

@ -3526,7 +3526,7 @@ var
aMenu.Items.Add(AMenuItem);
end;
AMenuItem.Caption := CurMode.GetCaption;
AMenuItem.Checked:=(Project1<>nil) and (Project1.ActiveBuildMode=CurMode);
AMenuItem.Checked := (Project1<>nil) and (Project1.ActiveBuildMode=CurMode);
AMenuItem.ShowAlwaysCheckable:=true;
inc(CurIndex);
end;
@ -4868,8 +4868,7 @@ var
if not CodeToolBoss.SetApplicationTitleStatement(AProject.MainUnitInfo.Source, NewTitle) then
begin
IDEMessageDialog(lisProjOptsError,
Format(lisUnableToChangeProjectTitleInSource, [LineEnding, CodeToolBoss.
ErrorMessage]),
Format(lisUnableToChangeProjectTitleInSource, [LineEnding, CodeToolBoss.ErrorMessage]),
mtWarning, [mbOk]);
Result := False;
Exit;
@ -4879,8 +4878,7 @@ var
if not CodeToolBoss.RemoveApplicationTitleStatement(AProject.MainUnitInfo.Source) then
begin
IDEMessageDialog(lisProjOptsError,
Format(lisUnableToRemoveProjectTitleFromSource, [LineEnding, CodeToolBoss.
ErrorMessage]),
Format(lisUnableToRemoveProjectTitleFromSource, [LineEnding, CodeToolBoss.ErrorMessage]),
mtWarning, [mbOk]);
Result := False;
Exit;

View File

@ -5993,9 +5993,9 @@ begin
inherited Assign(Source);
if Source is TProjectCompilerOptions then begin
ProjCompOptions:=TProjectCompilerOptions(Source);
FCompileReasons := ProjCompOptions.FCompileReasons;
FCompileReasons:=ProjCompOptions.FCompileReasons;
end else begin
FCompileReasons := [crCompile, crBuild, crRun];
FCompileReasons:=[crCompile, crBuild, crRun];
// keep BuildModes
end;
end;