aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/safe_ofstream.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-24 13:28:45 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-24 15:47:41 +0100
commit49750cc61904ba17060521bd345c6ae526fb1bf8 (patch)
tree8aa8c06a7d6ec58c62dd0741011e8357a19c8b8d /paludis/util/safe_ofstream.cc
parent75f48bbb1ae368febe984c10c2db2d0b5cbd7cec (diff)
downloadpaludis-49750cc61904ba17060521bd345c6ae526fb1bf8.tar.gz
paludis-49750cc61904ba17060521bd345c6ae526fb1bf8.tar.xz
FSEntry -> FSPath, FSStat
Fixes: ticket:967
Diffstat (limited to 'paludis/util/safe_ofstream.cc')
-rw-r--r--paludis/util/safe_ofstream.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/paludis/util/safe_ofstream.cc b/paludis/util/safe_ofstream.cc
index 6f1c31db7..4ebc11795 100644
--- a/paludis/util/safe_ofstream.cc
+++ b/paludis/util/safe_ofstream.cc
@@ -56,9 +56,16 @@ SafeOFStreamBase::SafeOFStreamBase(const int f) :
{
}
+SafeOFStream::SafeOFStream(const int f) :
+ SafeOFStreamBase(f),
+ std::ostream(&buf),
+ _close(false)
+{
+}
+
namespace
{
- int check_open_fsentry(const FSEntry & e, int open_flags)
+ int check_open_path(const FSPath & e, int open_flags)
{
Context context("When opening '" + stringify(e) + "' for write:");
@@ -73,15 +80,8 @@ namespace
}
}
-SafeOFStream::SafeOFStream(const int f) :
- SafeOFStreamBase(f),
- std::ostream(&buf),
- _close(false)
-{
-}
-
-SafeOFStream::SafeOFStream(const FSEntry & e, const int open_flags) :
- SafeOFStreamBase(check_open_fsentry(e, open_flags)),
+SafeOFStream::SafeOFStream(const FSPath & p, const int open_flags) :
+ SafeOFStreamBase(check_open_path(p, open_flags)),
std::ostream(&buf),
_close(true)
{