Gui: [skip ci] Missing reference in range-for with non trivial type (Py::Object) [-Wclazy-range-loop-reference]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user