Skip to content

Commit

Permalink
make poll ctor not protected
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Nov 16, 2024
1 parent 67dc0b7 commit 2c3e701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dpp/socketengines/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ struct socket_engine_poll : public socket_engine_base {
return r;
}

socket_engine_poll(cluster* creator) : socket_engine_base(creator) { };

Check notice on line 148 in src/dpp/socketengines/poll.cpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/dpp/socketengines/poll.cpp#L148

Struct 'socket_engine_poll' has a constructor with 1 argument that is not explicit.

protected:

bool remove_socket(dpp::socket fd) final {
Expand All @@ -159,8 +161,6 @@ struct socket_engine_poll : public socket_engine_base {
}
return false;
}

socket_engine_poll(cluster* creator) : socket_engine_base(creator) { };
};

std::unique_ptr<socket_engine_base> create_socket_engine(cluster* creator) {
Expand Down

0 comments on commit 2c3e701

Please sign in to comment.