Commit 4e391e7c authored by Dennis Jenkins's avatar Dennis Jenkins

Fixed cppcheck warning.

parent 0ad580e8
...@@ -28,7 +28,9 @@ namespace Aio { ...@@ -28,7 +28,9 @@ namespace Aio {
// A set of fds that are ready // A set of fds that are ready
class FdSet { class FdSet {
public: public:
FdSet(std::vector<Polling::Event>&& events) FdSet() = delete;
explicit FdSet(std::vector<Polling::Event>&& events)
: events_() : events_()
{ {
events_.reserve(events.size()); events_.reserve(events.size());
...@@ -177,11 +179,8 @@ public: ...@@ -177,11 +179,8 @@ public:
class AsyncContext : public ExecutionContext { class AsyncContext : public ExecutionContext {
public: public:
explicit AsyncContext(size_t threads, const std::string& threadsName = "") explicit AsyncContext(size_t threads, const std::string& threadsName = "")
: threads_(threads) : threads_(threads), threadsName_(threadsName)
{ }
{
threadsName_ = threadsName;
}
virtual ~AsyncContext() {} virtual ~AsyncContext() {}
......
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