From 63f070abd370c9c27bfd98885dbb4537c3ac7af4 Mon Sep 17 00:00:00 2001 From: juha Date: Tue, 30 Jul 2013 15:10:27 +0000 Subject: [PATCH] IDE: fix return value of IgnoredOption in all options parser. git-svn-id: trunk@42243 - --- ide/compiler.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ide/compiler.pp b/ide/compiler.pp index c43c9e8d67..d93f27ff20 100644 --- a/ide/compiler.pp +++ b/ide/compiler.pp @@ -409,9 +409,9 @@ begin Inc(Result); end; -function IgnoredOption(aOpt: string): Boolean; +function IsIgnoredOption(aOpt: string): Boolean; begin - if Length(aOpt) < 2 then Exit; + if Length(aOpt) < 2 then Exit(False); // Ignore : all file names and paths // executable path Result := aOpt[2] in ['F', 'e']; @@ -464,7 +464,7 @@ begin end; if Pos('fpc -i', fDescription) > 0 then fEditKind := oeList; // Values will be got later. - if fOwnerGroup.fIgnored or IgnoredOption(fOption) then + if fOwnerGroup.fIgnored or IsIgnoredOption(fOption) then fIgnored := True; end;