Fix various clang-tidy warnings

This commit is contained in:
Dennis Klein
2019-07-22 10:38:38 +02:00
committed by Dennis Klein
parent a65f0e6777
commit 499ffcd300
9 changed files with 23 additions and 12 deletions

View File

@@ -48,7 +48,9 @@ public:
* to 0 set the rate to 1 GHz (which is impossible to achieve, even with a
* loop that only calls RateLimiter::maybe_sleep).
*/
RateLimiter(float rate) : tw_req(std::chrono::seconds(1)), start_time(clock::now())
explicit RateLimiter(float rate)
: tw_req(std::chrono::seconds(1))
, start_time(clock::now())
{
if (rate <= 0) {
tw_req = std::chrono::nanoseconds(1);
@@ -133,4 +135,4 @@ private:
} /* namespace mq */
} /* namespace fair */
#endif // FAIR_MQ_TOOLS_RATELIMIT_H
#endif // FAIR_MQ_TOOLS_RATELIMIT_H