Skip to content

Commit

Permalink
[all] Missing override keyword (sofa-framework#4483)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger authored Feb 8, 2024
1 parent 4599681 commit 05fe3c1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ namespace
{

struct TestLocalMinDistance : public BaseSimulationTest {
void SetUp()
void SetUp() override
{
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");
}
void TearDown()
void TearDown() override
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct AffinePatch_sofa_test : public sofa::testing::BaseSimulationTest, sofa::t
Coord testedTranslation;

/// Create the context for the scene
void SetUp()
void SetUp() override
{
// Init simulation
simulation = sofa::simulation::getSimulation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ struct LinearElasticity_test : public sofa::testing::BaseSimulationTest, sofa::t


// Create the context for the scene
void SetUp()
void SetUp() override
{
// Init simulation
simulation = sofa::simulation::getSimulation();
Expand Down Expand Up @@ -281,7 +281,7 @@ struct LinearElasticity_test : public sofa::testing::BaseSimulationTest, sofa::t
}
return true;
}
void TearDown()
void TearDown() override
{
if (tractionStruct.root!=nullptr)
sofa::simulation::node::unload(tractionStruct.root);
Expand Down
3 changes: 2 additions & 1 deletion Sofa/GL/src/sofa/gl/GLSLShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ class GLSLFileListener : public helper::system::FileEventListener
}

/// Inherited from FileEventListener
void fileHasChanged(const std::string& filename){
void fileHasChanged(const std::string& filename) override
{
/// We are recompiling & re-initializing all the shaders...
/// If this become a bottleneck we can do finer grain updates to
/// speed up the thing.
Expand Down
2 changes: 1 addition & 1 deletion Sofa/framework/Simulation/Graph/test/Simulation_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ template <class Object>
struct InstrumentedObject : public Object
{
InstrumentedObject() { objectCounter++; }
~InstrumentedObject() { objectCounter--; }
~InstrumentedObject() override { objectCounter--; }
};

/// Component with a sub-component
Expand Down

0 comments on commit 05fe3c1

Please sign in to comment.