From 81acaa6ae0c5ca917ee12fff34fa262957970b87 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 16 Jan 2010 10:35:18 -0500 Subject: [PATCH] Enhancement - Eliminated all unlink calls. --- src/edit.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/edit.cpp b/src/edit.cpp index 59abc0c1b..f24b920a0 100644 --- a/src/edit.cpp +++ b/src/edit.cpp @@ -34,6 +34,7 @@ #include #include #include "Directory.h" +#include "File.h" #include "Date.h" #include "Duration.h" #include "text.h" @@ -593,7 +594,7 @@ ARE_THESE_REALLY_HARMFUL: std::cout << "No edits were detected." << std::endl; // Cleanup. - unlink (file.str ().c_str ()); + File::remove (file.str ()); } ////////////////////////////////////////////////////////////////////////////////