]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Base/DijkstraBase.hxx
...
[FrontAlgorithms.git] / lib / fpa / Base / DijkstraBase.hxx
index 6f4937e82b9f5a5f67bc1ad1395ec5277d67282e..d04ecf56e7bba0299b5190043b423fbc3f0e232b 100644 (file)
@@ -42,12 +42,11 @@ fpa::Base::DijkstraBase< _TAlgorithm >::
 
 // -------------------------------------------------------------------------
 template< class _TAlgorithm >
-typename fpa::Base::DijkstraBase< _TAlgorithm >::
-TOutputValue fpa::Base::DijkstraBase< _TAlgorithm >::
-_ComputeOutputValue( const TNode& n )
+void fpa::Base::DijkstraBase< _TAlgorithm >::
+_ComputeOutputValue( TNode& n )
 {
   TOutputValue c = this->m_WeightFunction->Evaluate( n.Vertex, n.Parent );
-  return( c + this->_GetOutputValue( n.Parent ) );
+  n.Value = c + this->_GetOutputValue( n.Parent );
 }
 
 // -------------------------------------------------------------------------