system/UniqueFileDescriptor: make the "int" constructor public

This commit is contained in:
Max Kellermann 2018-08-22 15:39:45 +02:00
parent dda5516eec
commit b1390ec27f

View File

@ -44,12 +44,9 @@ public:
UniqueFileDescriptor() noexcept UniqueFileDescriptor() noexcept
:FileDescriptor(FileDescriptor::Undefined()) {} :FileDescriptor(FileDescriptor::Undefined()) {}
protected: explicit UniqueFileDescriptor(int _fd) noexcept
explicit UniqueFileDescriptor(int _fd) noexcept:FileDescriptor(_fd) { :FileDescriptor(_fd) {}
assert(IsDefined());
}
public:
explicit UniqueFileDescriptor(FileDescriptor _fd) noexcept explicit UniqueFileDescriptor(FileDescriptor _fd) noexcept
:FileDescriptor(_fd) {} :FileDescriptor(_fd) {}