diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-02-03 08:46:49 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-02-03 08:46:49 +0000 |
commit | ab0f053be2cdb4f36b8866ca7c9ba557a676539d (patch) | |
tree | d76376ec569e7939f4654cdbbe4568f9182eb53f /documentapi | |
parent | 2b951244de137a3321c6aa70f52389664cab8efc (diff) |
- Use T && f() && to avoid moving temporaries.
- std::make_unique/make_shared
Diffstat (limited to 'documentapi')
-rw-r--r-- | documentapi/src/tests/policies/testframe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/documentapi/src/tests/policies/testframe.cpp b/documentapi/src/tests/policies/testframe.cpp index 973297a50d1..8cc13b116b6 100644 --- a/documentapi/src/tests/policies/testframe.cpp +++ b/documentapi/src/tests/policies/testframe.cpp @@ -111,8 +111,8 @@ TestFrame::testSelect(const std::vector<string> &expected) std::vector<mbus::RoutingNode*> selected; if (!select(selected, expected.size())) { LOG(error, "Failed to select recipients."); - for (auto & i : selected) { - LOG(error, "Selected: %s", i->getRoute().toString().c_str()); + for (auto & node : selected) { + LOG(error, "Selected: %s", node->getRoute().toString().c_str()); } return false; } |