소스 검색

Patch from Graeme Geldenhuys to fix a compiler-hint

git-svn-id: trunk@12969 -
joost 16 년 전
부모
커밋
b4a8ae3637
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      packages/regexpr/src/regex.pp

+ 4 - 4
packages/regexpr/src/regex.pp

@@ -169,8 +169,8 @@ type
       constructor Create(const aRegexStr : string);
       destructor Destroy; override;
 
-      function Parse(var aErrorPos : integer;
-                     var aErrorCode: TRegexError) : boolean; virtual;
+      function Parse(out aErrorPos : integer;
+                     out aErrorCode: TRegexError) : boolean; virtual;
       function MatchString(const S : string; out MatchPos : integer; var Offset : integer) : boolean; virtual;
       function ReplaceAllString(const src, newstr: ansistring; out DestStr : string): Integer;
 
@@ -374,8 +374,8 @@ begin
 end;
 
 {--------}
-function TRegexEngine.Parse(var aErrorPos : integer;
-                              var aErrorCode: TRegexError)
+function TRegexEngine.Parse(out aErrorPos : integer;
+                              out aErrorCode: TRegexError)
                                                             : boolean;
 begin
   {clear the current transition table}