Skip to content
Snippets Groups Projects
Commit 0f5f1d95 authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[GL] GEOObjects::addSurfaceVec() without unique_ptr arg.

parent a022db1c
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,15 @@ void GEOObjects::addSurfaceVec(
_callbacks->addSurfaceVec(name);
}
void GEOObjects::addSurfaceVec(std::vector<Surface*>&& sfc,
const std::string& name,
SurfaceVec::NameIdMap&& sfc_names)
{
_sfc_vecs.push_back(
new SurfaceVec(name, std::move(sfc), std::move(sfc_names)));
_callbacks->addSurfaceVec(name);
}
bool GEOObjects::appendSurfaceVec(const std::vector<Surface*>& surfaces,
const std::string& name)
{
......
......@@ -183,6 +183,9 @@ public:
const std::string& name,
std::unique_ptr<std::map<std::string, std::size_t>>
sfc_names = nullptr);
void addSurfaceVec(std::vector<Surface*>&& sfc,
const std::string& name,
SurfaceVec::NameIdMap&& sfc_names);
/**
* Copies the surfaces in the vector to the SurfaceVec with the given name.
......
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