mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 20:30:55 +02:00
* Slight optimization (constant instead of variable in assignment)
git-svn-id: trunk@2747 -
This commit is contained in:
parent
ccbc7717cc
commit
88a8aa31d9
@ -130,7 +130,7 @@ begin
|
||||
begin
|
||||
for I := 1 to Length (Pa) do
|
||||
if Pa [I] = '/' then
|
||||
Pa [I] := DirectorySeparator
|
||||
Pa [I] := '\'
|
||||
end
|
||||
else
|
||||
if DirectorySeparator = '/' then
|
||||
@ -138,7 +138,7 @@ begin
|
||||
begin
|
||||
for I := 1 to Length (Pa) do
|
||||
if Pa [I] = '\' then
|
||||
Pa [I] := DirectorySeparator;
|
||||
Pa [I] := '/';
|
||||
end;
|
||||
|
||||
(* PathStart is amount of characters to strip to get beginning *)
|
||||
|
Loading…
Reference in New Issue
Block a user