Menu

Diff of /trunk/Src/UFreePascalCompiler.pas [r391] .. [r392]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/Src/UFreePascalCompiler.pas
+++ b/trunk/Src/UFreePascalCompiler.pas
@@ -94,9 +94,7 @@
 
 uses
   // Delphi
-  SysUtils, Windows {for inlining},
-  // Project
-  UUtils;
+  SysUtils, Windows {for inlining};
 
 
 { TFreePascalCompiler }
@@ -116,8 +114,12 @@
     @param Project [in] Name of project (source file)
   }
 begin
-  SysUtils.DeleteFile(DirToPath(Path) + ChangeFileExt(Project, '.o'));
-  SysUtils.DeleteFile(DirToPath(Path) + ChangeFileExt(Project, '.ppu'));
+  SysUtils.DeleteFile(
+    IncludeTrailingPathDelimiter(Path) + ChangeFileExt(Project, '.o')
+  );
+  SysUtils.DeleteFile(
+    IncludeTrailingPathDelimiter(Path) + ChangeFileExt(Project, '.ppu')
+  );
 end;
 
 function TFreePascalCompiler.GetDefaultSwitches: string;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.