Drawing: [skip ci] Fix several clazy issues:

* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary]
* Use multi-arg instead [-Wclazy-qstring-arg]
This commit is contained in:
wmayer
2022-07-25 11:31:37 +02:00
parent 6ad47111ab
commit 51ecdbdabe
3 changed files with 19 additions and 19 deletions

View File

@@ -59,7 +59,7 @@ namespace Drawing {
string key;
string value;
for (auto keyPy : sourceRange.keys()) {
for (const auto& keyPy : sourceRange.keys()) {
key = Py::String(keyPy);
value = Py::String(sourceRange[keyPy]);
*targetIt = {key, value};