Skip to content

Commit

Permalink
Harmless missing call to super init()
Browse files Browse the repository at this point in the history
The init() method usually follows the call super pattern. The components affected by this commit should not their behavior (except the additional check on the required Data)
  • Loading branch information
alxbilger committed Jan 12, 2024
1 parent 86c6e62 commit fa49cf9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Cosserat/engine/PointsManager.inl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ namespace sofa::core::behavior

void PointsManager::init()
{
Inherit1::init();

if (getTopology() == NULL)
msg_error() << "Error cannot find the topology";

Expand Down
2 changes: 2 additions & 0 deletions src/Cosserat/mapping/BaseCosserat.inl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ BaseCosserat<TIn1, TIn2, TOut>::BaseCosserat()
template <class TIn1, class TIn2, class TOut>
void BaseCosserat<TIn1, TIn2, TOut>::init()
{
Inherit1::init();

// Fill the initial vector
const OutDataVecCoord* xfromData = m_toModel->read(core::ConstVecCoordId::position());
const OutVecCoord xfrom = xfromData->getValue();
Expand Down
3 changes: 2 additions & 1 deletion src/Cosserat/mapping/ProjectionEngine.inl
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ ProjectionEngine<DataTypes>::ProjectionEngine()
template<class DataTypes>
void ProjectionEngine<DataTypes>::init()
{
printf ("<====================================> \n");
addInput(&d_from);
addInput(&d_dest);
addOutput(&d_output);

Inherit1::init();
}

template<class DataTypes>
Expand Down

0 comments on commit fa49cf9

Please sign in to comment.