소스 검색

pastojs: clean up

git-svn-id: trunk@41313 -
Mattias Gaertner 6 년 전
부모
커밋
818354b58f
3개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/pastojs/src/pas2jsfileutils.pp
  2. 2 0
      packages/pastojs/src/pas2jsfileutilsnodejs.inc
  3. 2 0
      packages/pastojs/src/pas2jsfileutilsunix.inc

+ 2 - 2
packages/pastojs/src/pas2jsfileutils.pp

@@ -40,8 +40,8 @@ function FileIsInPath(const Filename, Path: string): boolean;
 function ChompPathDelim(const Path: string): string;
 function ExpandFileNamePJ(const FileName: string; {const} BaseDir: string = ''): string;
 function ExpandDirectory(const aDirectory: string): string;
-function IsUNCPath(const {%H-}Path: String): Boolean;
-function ExtractUNCVolume(const {%H-}Path: String): String;
+function IsUNCPath(const Path: String): Boolean;
+function ExtractUNCVolume(const Path: String): String;
 function ExtractFileRoot(FileName: String): String;
 function TryCreateRelativePath(
   const Dest: String; // Filename

+ 2 - 0
packages/pastojs/src/pas2jsfileutilsnodejs.inc

@@ -145,11 +145,13 @@ end;
 function IsUNCPath(const Path: String): Boolean;
 begin
   Result := false;
+  if Path='' then ;
 end;
 
 function ExtractUNCVolume(const Path: String): String;
 begin
   Result := '';
+  if Path='' then ;
 end;
 
 function FileIsWritable(const AFilename: string): boolean;

+ 2 - 0
packages/pastojs/src/pas2jsfileutilsunix.inc

@@ -146,11 +146,13 @@ end;
 function IsUNCPath(const Path: String): Boolean;
 begin
   Result := false;
+  if Path='' then ;
 end;
 
 function ExtractUNCVolume(const Path: String): String;
 begin
   Result := '';
+  if Path='' then ;
 end;
 
 function FileIsWritable(const AFilename: string): boolean;