Quellcode durchsuchen

* Slight optimization (constant instead of variable in assignment)

git-svn-id: trunk@2747 -
Tomas Hajny vor 19 Jahren
Ursprung
Commit
88a8aa31d9
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      rtl/inc/fexpand.inc

+ 2 - 2
rtl/inc/fexpand.inc

@@ -130,7 +130,7 @@ begin
       begin
       begin
         for I := 1 to Length (Pa) do
         for I := 1 to Length (Pa) do
           if Pa [I] = '/' then
           if Pa [I] = '/' then
-            Pa [I] := DirectorySeparator
+            Pa [I] := '\'
       end
       end
     else
     else
       if DirectorySeparator = '/' then
       if DirectorySeparator = '/' then
@@ -138,7 +138,7 @@ begin
         begin
         begin
           for I := 1 to Length (Pa) do
           for I := 1 to Length (Pa) do
             if Pa [I] = '\' then
             if Pa [I] = '\' then
-              Pa [I] := DirectorySeparator;
+              Pa [I] := '/';
         end;
         end;
 
 
 (* PathStart is amount of characters to strip to get beginning *)
 (* PathStart is amount of characters to strip to get beginning *)