IDE: checked compiler warnings, clean up

git-svn-id: trunk@48224 -
This commit is contained in:
mattias 2015-03-10 15:12:17 +00:00
parent 4502988873
commit afd9191244
2 changed files with 5 additions and 7 deletions

View File

@ -61,7 +61,7 @@ type
public
constructor Create;
destructor Destroy; override;
function Find(aParentType: string; var Index: Integer): Boolean;
function Find(aParentType: string; out Index: Integer): Boolean;
function AddVisualOffset(const aParentType: string; aTop, aLeft: Integer): integer;
property Items[Index: Integer]: TVisualOffset read GetVisualOffset
write SetVisualOffset; default;
@ -152,7 +152,7 @@ begin
inherited Destroy;
end;
function TVisualOffsets.Find(aParentType: string; var Index: Integer): Boolean;
function TVisualOffsets.Find(aParentType: string; out Index: Integer): Boolean;
var
i: Integer;
begin

View File

@ -237,8 +237,7 @@ type
function ConsistencyCheck: integer;
procedure SetValuesEditable(AValue: boolean);
public
procedure SetOptions(ACodeToolBoss: TCodeToolManager;
Options: TCodeToolsOptions);
procedure SetOptions(ACodeToolBoss: TCodeToolManager);
constructor Create(TheOwner: TComponent); override;
destructor Destroy; override;
property DefineTree: TDefineTree read FDefineTree;
@ -260,7 +259,7 @@ function ShowCodeToolsDefinesEditor(ACodeToolBoss: TCodeToolManager;
var CodeToolsDefinesEditor: TCodeToolsDefinesEditor;
begin
CodeToolsDefinesEditor:=TCodeToolsDefinesEditor.Create(nil);
CodeToolsDefinesEditor.SetOptions(ACodeToolBoss,Options);
CodeToolsDefinesEditor.SetOptions(ACodeToolBoss);
CodeToolsDefinesEditor.Macros:=Macros;
Result:=CodeToolsDefinesEditor.ShowModal;
if Result=mrOk then begin
@ -1390,8 +1389,7 @@ begin
InsertFilePathBitBtn.Enabled:=AValue;
end;
procedure TCodeToolsDefinesEditor.SetOptions(ACodeToolBoss: TCodeToolManager;
Options: TCodeToolsOptions);
procedure TCodeToolsDefinesEditor.SetOptions(ACodeToolBoss: TCodeToolManager);
begin
FLastSelectedNode:=nil;
FBoss:=ACodeToolBoss;