mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 20:59:36 +02:00
Codetools: Eliminate a variable.
This commit is contained in:
parent
f6d50d449f
commit
8eeeef47c6
@ -3979,15 +3979,14 @@ end;
|
||||
|
||||
function TLinkScanner.IncludePathDirective: boolean;
|
||||
// {$includepath path_addition}
|
||||
var AddPath, PathDivider: string;
|
||||
var AddPath: string;
|
||||
begin
|
||||
if StoreDirectives then
|
||||
FDirectives[FDirectivesCount-1].Kind:=lsdkIncludePath;
|
||||
inc(SrcPos);
|
||||
AddPath:=Trim(copy(Src,SrcPos,CommentInnerEndPos-SrcPos));
|
||||
PathDivider:=':';
|
||||
Values.Variables[ExternalMacroStart+'INCPATH']:=
|
||||
Values.Variables[ExternalMacroStart+'INCPATH']+PathDivider+AddPath;
|
||||
Values.Variables[ExternalMacroStart+'INCPATH']+':'+AddPath;
|
||||
Result:=true;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user