aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-23 13:37:14 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-24 15:47:36 +0100
commit75f48bbb1ae368febe984c10c2db2d0b5cbd7cec (patch)
treeb0ae6026ed2ab6233a9e0aa5337333d3e53dd683
parentefb4ba6242a6388dbe0a20ac66ba6ae041e49ca8 (diff)
downloadpaludis-75f48bbb1ae368febe984c10c2db2d0b5cbd7cec.tar.gz
paludis-75f48bbb1ae368febe984c10c2db2d0b5cbd7cec.tar.xz
explicit ctors
-rw-r--r--paludis/util/safe_ifstream.hh6
-rw-r--r--paludis/util/safe_ofstream.hh6
2 files changed, 6 insertions, 6 deletions
diff --git a/paludis/util/safe_ifstream.hh b/paludis/util/safe_ifstream.hh
index 37803e6..f905292 100644
--- a/paludis/util/safe_ifstream.hh
+++ b/paludis/util/safe_ifstream.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2009 Ciaran McCreesh
+ * Copyright (c) 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -110,8 +110,8 @@ namespace paludis
///\name Basic operations
///\{
- SafeIFStream(const int fd);
- SafeIFStream(const FSEntry &);
+ explicit SafeIFStream(const int fd);
+ explicit SafeIFStream(const FSEntry &);
~SafeIFStream();
///\}
diff --git a/paludis/util/safe_ofstream.hh b/paludis/util/safe_ofstream.hh
index 14f7f57..543a94b 100644
--- a/paludis/util/safe_ofstream.hh
+++ b/paludis/util/safe_ofstream.hh
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2008, 2009 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2008, 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -108,8 +108,8 @@ namespace paludis
///\name Basic operations
///\{
- SafeOFStream(const int fd);
- SafeOFStream(const FSEntry &, const int open_flags = -1);
+ explicit SafeOFStream(const int fd);
+ explicit SafeOFStream(const FSEntry &, const int open_flags = -1);
~SafeOFStream();
///\}