Skip to content
Snippets Groups Projects
Commit 9494bb15 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitri Naumov
Browse files

[GL] Remove unnecessary call to deletePolylines.

If empty, no deletion is done anyway.
parent 3113af35
No related branches found
No related tags found
No related merge requests found
...@@ -140,15 +140,11 @@ int XmlGmlInterface::readFile(const QString &fileName) ...@@ -140,15 +140,11 @@ int XmlGmlInterface::readFile(const QString &fileName)
} }
} }
if (polylines->empty()) if (!polylines->empty())
deletePolylines(std::move(polylines));
else
_geo_objs.addPolylineVec(std::move(polylines), gliName, _geo_objs.addPolylineVec(std::move(polylines), gliName,
std::move(ply_names)); std::move(ply_names));
if (surfaces->empty()) if (!surfaces->empty())
deleteSurfaces(std::move(surfaces));
else
_geo_objs.addSurfaceVec(std::move(surfaces), gliName, _geo_objs.addSurfaceVec(std::move(surfaces), gliName,
std::move(sfc_names)); std::move(sfc_names));
return 1; return 1;
......
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