- SMESH_Algo* me = const_cast< SMESH_Algo* >( this );
-
- std::list<const SMESHDS_Hypothesis *> savedHyps; // don't delete the list if
- savedHyps.swap( me->_appliedHypList ); // it does not change (#16578)
-
- me->_appliedHypList.clear();
- if ( const SMESH_HypoFilter* filter = GetCompatibleHypoFilter( ignoreAuxiliary ))
- aMesh.GetHypotheses( aShape, *filter, me->_appliedHypList, false );
-
- if ( _appliedHypList == savedHyps )
- savedHyps.swap( me->_appliedHypList );
-
- return _appliedHypList;