Codetools: Eliminate a variable.

This commit is contained in:
Juha 2021-10-01 16:28:52 +03:00
parent f6d50d449f
commit 8eeeef47c6

View File

@ -3979,15 +3979,14 @@ end;
function TLinkScanner.IncludePathDirective: boolean; function TLinkScanner.IncludePathDirective: boolean;
// {$includepath path_addition} // {$includepath path_addition}
var AddPath, PathDivider: string; var AddPath: string;
begin begin
if StoreDirectives then if StoreDirectives then
FDirectives[FDirectivesCount-1].Kind:=lsdkIncludePath; FDirectives[FDirectivesCount-1].Kind:=lsdkIncludePath;
inc(SrcPos); inc(SrcPos);
AddPath:=Trim(copy(Src,SrcPos,CommentInnerEndPos-SrcPos)); AddPath:=Trim(copy(Src,SrcPos,CommentInnerEndPos-SrcPos));
PathDivider:=':';
Values.Variables[ExternalMacroStart+'INCPATH']:= Values.Variables[ExternalMacroStart+'INCPATH']:=
Values.Variables[ExternalMacroStart+'INCPATH']+PathDivider+AddPath; Values.Variables[ExternalMacroStart+'INCPATH']+':'+AddPath;
Result:=true; Result:=true;
end; end;