summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-22 15:39:45 +0200
committerMax Kellermann <max@musicpd.org>2018-08-22 15:40:45 +0200
commitb1390ec27fdbf35ab53a50eedf0fd63b8ea55e1b (patch)
tree51403b404a41268aad89375f072fefe40a5596ee /src/system
parentdda5516eec410b9ab23090c9d733e85283f6f2d3 (diff)
system/UniqueFileDescriptor: make the "int" constructor public
Diffstat (limited to 'src/system')
-rw-r--r--src/system/UniqueFileDescriptor.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/system/UniqueFileDescriptor.hxx b/src/system/UniqueFileDescriptor.hxx
index 936791df0..3175a093a 100644
--- a/src/system/UniqueFileDescriptor.hxx
+++ b/src/system/UniqueFileDescriptor.hxx
@@ -44,12 +44,9 @@ public:
UniqueFileDescriptor() noexcept
:FileDescriptor(FileDescriptor::Undefined()) {}
-protected:
- explicit UniqueFileDescriptor(int _fd) noexcept:FileDescriptor(_fd) {
- assert(IsDefined());
- }
+ explicit UniqueFileDescriptor(int _fd) noexcept
+ :FileDescriptor(_fd) {}
-public:
explicit UniqueFileDescriptor(FileDescriptor _fd) noexcept
:FileDescriptor(_fd) {}