Commit b1390ec2 authored by Max Kellermann's avatar Max Kellermann

system/UniqueFileDescriptor: make the "int" constructor public

parent dda5516e
......@@ -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) {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment