aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/safe_ofstream.cc
diff options
context:
space:
mode:
authorAvatar Wouter van Kesteren <woutershep@gmail.com> 2013-04-26 17:46:12 +0200
committerAvatar Wouter van Kesteren <woutershep@gmail.com> 2013-05-03 22:54:13 +0200
commitf229e6b71de24d65caea010053f0650d53bece01 (patch)
treebf12853cd9ecf8a54ab7852ab7c15034e76509c1 /paludis/util/safe_ofstream.cc
parentab1f3d486986148560158e38640f8258d25881a3 (diff)
downloadpaludis-f229e6b71de24d65caea010053f0650d53bece01.tar.gz
paludis-f229e6b71de24d65caea010053f0650d53bece01.tar.xz
Use StreamHolder
Diffstat (limited to 'paludis/util/safe_ofstream.cc')
-rw-r--r--paludis/util/safe_ofstream.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/util/safe_ofstream.cc b/paludis/util/safe_ofstream.cc
index 5c3917bb6..859428ecc 100644
--- a/paludis/util/safe_ofstream.cc
+++ b/paludis/util/safe_ofstream.cc
@@ -109,7 +109,7 @@ SafeOFStreamBase::SafeOFStreamBase(const int f, const bool b) :
SafeOFStream::SafeOFStream(const int f, const bool buffer) :
SafeOFStreamBase(f, buffer),
- std::ostream(&buf),
+ StreamHolder<std::ostream>(&buf),
_close(false)
{
}
@@ -133,7 +133,7 @@ namespace
SafeOFStream::SafeOFStream(const FSPath & p, const int open_flags, const bool b) :
SafeOFStreamBase(check_open_path(p, open_flags), b),
- std::ostream(&buf),
+ StreamHolder<std::ostream>(&buf),
_close(true)
{
}