mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 23:39:24 +02:00
Codetools: Eliminate a variable.
This commit is contained in:
parent
f6d50d449f
commit
8eeeef47c6
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user