Fixed a method returning reference to a local variable

This commit is contained in:
Maciej Suminski 2017-08-09 14:03:02 +02:00
parent 0f219dc40c
commit 6701095855
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ private:
std::vector<VECTOR2I> m_prevNodes; std::vector<VECTOR2I> m_prevNodes;
std::vector<std::pair<int, int> > m_prevEdges; std::vector<std::pair<int, int> > m_prevEdges;
const std::list<hed::EDGE_PTR>& hedTriangulation( std::vector<hed::NODE_PTR>& aNodes ) std::list<hed::EDGE_PTR> hedTriangulation( std::vector<hed::NODE_PTR>& aNodes )
{ {
hed::TRIANGULATION triangulator; hed::TRIANGULATION triangulator;
triangulator.CreateDelaunay( aNodes.begin(), aNodes.end() ); triangulator.CreateDelaunay( aNodes.begin(), aNodes.end() );
@ -175,7 +175,7 @@ private:
} }
const std::list<hed::EDGE_PTR>& computeTriangulation( std::vector<hed::NODE_PTR>& aNodes ) std::list<hed::EDGE_PTR> computeTriangulation( std::vector<hed::NODE_PTR>& aNodes )
{ {
#if 0 #if 0
bool refresh = false; bool refresh = false;