Geometry const& geo = view->GetAbsoluteGeometry(); parent = view->GetToplevel();
As far as I can see, if this actually works, it works only by accident. This binds a C++ reference to the return value of a function. The return value is a temporary that will disappear the instant the function completes.
Further down in the function, we have:
m_dirty_areas.push_back(geo);
This looks like it pushes a dangling reference.
« Back to merge proposal
Geometry const& geo = view->GetAbsolu teGeometry( ); el();
parent = view->GetToplev
As far as I can see, if this actually works, it works only by accident. This binds a C++ reference to the return value of a function. The return value is a temporary that will disappear the instant the function completes.
Further down in the function, we have:
m_dirty_ areas.push_ back(geo) ;
This looks like it pushes a dangling reference.