Commit 7e5edbc9 by Oleksandr Pavlyk Committed by GitHub

Avoid copy in iteration by using const auto & (#4861)

This change is fixing a Coverity AUTO_CAUSES_COPY issues.
parent 5891867e
...@@ -1142,7 +1142,7 @@ protected: ...@@ -1142,7 +1142,7 @@ protected:
} }
msg += "kwargs: "; msg += "kwargs: ";
bool first = true; bool first = true;
for (auto kwarg : kwargs) { for (const auto &kwarg : kwargs) {
if (first) { if (first) {
first = false; first = false;
} else { } else {
......
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