Fixed a method returning reference to a local variable
This commit is contained in:
parent
0f219dc40c
commit
6701095855
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue