Skip to content
Snippets Groups Projects
Commit 853b6348 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Avoid access variable after move.

parent 937d75f9
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,10 @@ void GEOObjects::addSurfaceVec( ...@@ -219,7 +219,10 @@ void GEOObjects::addSurfaceVec(
{ {
_sfc_vecs.push_back( _sfc_vecs.push_back(
new SurfaceVec(name, std::move(sfc), std::move(sfc_names))); new SurfaceVec(name, std::move(sfc), std::move(sfc_names)));
if (!sfc || !sfc->empty()) _callbacks->addSurfaceVec(name); if (_sfc_vecs.back()->size() == 0)
{
_callbacks->addSurfaceVec(name);
}
} }
bool GEOObjects::appendSurfaceVec(const std::vector<Surface*>& surfaces, bool GEOObjects::appendSurfaceVec(const std::vector<Surface*>& surfaces,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment