cleanup, fix clang-tidy warnings

This commit is contained in:
Adrien Béraud committed 2019-03-17 17:43:52 -04:00
1 parent 215b44ca3b
commit 4401e47002
22 files changed
+110 -102

No files matched your search

+2 -2
View File
@@ -49,7 +49,7 @@ Node::isGood(time_point now) const
bool
Node::isPendingMessage() const
{
for (auto r : requests_) {
for (const auto& r : requests_) {
if (r.second->pending())
return true;
}
@@ -60,7 +60,7 @@ size_t
Node::getPendingMessageCount() const
{
size_t count {0};
for (auto r : requests_) {
for (const auto& r : requests_) {
if (r.second->pending())
count++;
}