Browse Source

Fix warning about scalar initialization

cl-refactor
Paweł Bylica 10 years ago
parent
commit
49ebc887ec
  1. 2
      libp2p/Common.h

2
libp2p/Common.h

@ -235,7 +235,7 @@ class DeadlineOps
};
public:
DeadlineOps(ba::io_service& _io, unsigned _reapIntervalMs = 100): m_io(_io), m_reapIntervalMs(_reapIntervalMs), m_stopped({false}) { reap(); }
DeadlineOps(ba::io_service& _io, unsigned _reapIntervalMs = 100): m_io(_io), m_reapIntervalMs(_reapIntervalMs), m_stopped(false) { reap(); }
~DeadlineOps() { stop(); }
void schedule(unsigned _msInFuture, std::function<void(boost::system::error_code const&)> const& _f) { if (m_stopped) return; DEV_GUARDED(x_timers) m_timers.emplace_back(m_io, _msInFuture, _f); }

Loading…
Cancel
Save