From 3adfcc06616d2fd302f5789148d99857b08b86c7 Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 7 Jul 2005 19:25:09 +0000 Subject: [PATCH] fixed var parameter git-svn-id: trunk@7326 - --- components/synedit/synedit.pp | 2 +- doceditor/frmbuild.pp | 5 +++-- doceditor/frmexample.pp | 1 + doceditor/lazde.lpi | 24 ++++++++++++------------ 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/components/synedit/synedit.pp b/components/synedit/synedit.pp index 108427849d..5b5f026f58 100644 --- a/components/synedit/synedit.pp +++ b/components/synedit/synedit.pp @@ -2499,7 +2499,7 @@ var iLine: integer; begin iLine := PixelsToRowColumn(Point(0, Y)).Y; - + case TSynEditStringList(fLines).FoldType[iLine] of cfExpanded: begin diff --git a/doceditor/frmbuild.pp b/doceditor/frmbuild.pp index 3564ea4426..5580f33af7 100644 --- a/doceditor/frmbuild.pp +++ b/doceditor/frmbuild.pp @@ -137,7 +137,7 @@ type // Sources methods Function SourceFileCount : Integer; Function AddSource(Const ASource,AOptions : String) : Integer; - Procedure GetSourceOptions(Index : Integer; Var ASource, AOptions: String); + Procedure GetSourceOptions(Index : Integer; Out ASource, AOptions: String); Procedure SetSourceOptions(Index : Integer; Const ASource, AOptions: String); Procedure ClearSources; procedure DisplaySources; @@ -566,7 +566,8 @@ begin FOptions[Index]:=ASource+'='+AOptions; end; -Procedure TBuildForm.GetSourceOptions(Index : Integer; Var ASource, AOptions: String); +Procedure TBuildForm.GetSourceOptions(Index : Integer; + Out ASource, AOptions: String); Var N : Integer; diff --git a/doceditor/frmexample.pp b/doceditor/frmexample.pp index c2cf3188d4..154eb7251c 100644 --- a/doceditor/frmexample.pp +++ b/doceditor/frmexample.pp @@ -68,6 +68,7 @@ procedure TExampleForm.ExampleFormCloseQuery(Sender: TObject; var S: String; begin + if Sender = nil then exit; if ModalResult = mrOk then begin S := ExtractFilePath(EFilename.Text); CanClose := CheckFilePath(S); diff --git a/doceditor/lazde.lpi b/doceditor/lazde.lpi index 69fda6c83f..979fd5b243 100644 --- a/doceditor/lazde.lpi +++ b/doceditor/lazde.lpi @@ -8,7 +8,7 @@ - + @@ -108,8 +108,8 @@ - - + + @@ -118,18 +118,18 @@ - + - + - + @@ -138,26 +138,26 @@ - - + + - + - - + + - +