aboutsummaryrefslogtreecommitdiff
path: root/cutl/fs/auto-remove.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-14 14:42:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-14 14:42:38 +0200
commit7945c1771bbb57125b3e3343fa84bfc314e0f4d4 (patch)
tree97b25a393cb5c65f9d58f31cb382b1b9c410586d /cutl/fs/auto-remove.cxx
parent783efe3b1649f3426613e3c151e47c33a854010c (diff)
Fix few C++11-related warnings
Diffstat (limited to 'cutl/fs/auto-remove.cxx')
-rw-r--r--cutl/fs/auto-remove.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/cutl/fs/auto-remove.cxx b/cutl/fs/auto-remove.cxx
index c790c29..f780c61 100644
--- a/cutl/fs/auto-remove.cxx
+++ b/cutl/fs/auto-remove.cxx
@@ -15,10 +15,7 @@ namespace cutl
~auto_remove ()
{
if (!canceled_)
- {
- if (std::remove (path_.string ().c_str ()) == -1)
- throw error (errno);
- }
+ std::remove (path_.string ().c_str ()); // Ignore error.
}
auto_removes::
@@ -27,10 +24,7 @@ namespace cutl
if (!canceled_)
{
for (paths::iterator i (paths_.begin ()); i != paths_.end (); ++i)
- {
- if (std::remove (i->string ().c_str ()) == -1)
- throw error (errno);
- }
+ std::remove (i->string ().c_str ()); // Ignore error.
}
}
}