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 ()); } ////////////////////////////////////////////////////////////////////////////////