Gui: [skip ci] Missing reference in range-for with non trivial type (Py::Object) [-Wclazy-range-loop-reference]

This commit is contained in:
wmayer
2022-10-25 13:36:39 +02:00
parent 342666162a
commit 5f48e22bba

View File

@@ -273,7 +273,7 @@ private:
auto key = wrappers.find(obj);
if (key != wrappers.end()) {
Base::PyGILStateLocker lock;
for (auto it : key->second) {
for (const auto& it : key->second) {
auto value = it.ptr();
Shiboken::Object::setValidCpp(reinterpret_cast<SbkObject*>(value), false);
}