Skip to content

Commit 05fe3c1

Browse files
authored
[all] Missing override keyword (sofa-framework#4483)
1 parent 4599681 commit 05fe3c1

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

Sofa/Component/Collision/Detection/Intersection/tests/LocalMinDistance_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ namespace
5454
{
5555

5656
struct TestLocalMinDistance : public BaseSimulationTest {
57-
void SetUp()
57+
void SetUp() override
5858
{
5959
sofa::simpleapi::importPlugin("Sofa.Component.StateContainer");
6060
}
61-
void TearDown()
61+
void TearDown() override
6262
{
6363
}
6464

Sofa/Component/SolidMechanics/simutests/AffinePatch_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct AffinePatch_sofa_test : public sofa::testing::BaseSimulationTest, sofa::t
8080
Coord testedTranslation;
8181

8282
/// Create the context for the scene
83-
void SetUp()
83+
void SetUp() override
8484
{
8585
// Init simulation
8686
simulation = sofa::simulation::getSimulation();

Sofa/Component/SolidMechanics/simutests/LinearElasticity_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ struct LinearElasticity_test : public sofa::testing::BaseSimulationTest, sofa::t
196196

197197

198198
// Create the context for the scene
199-
void SetUp()
199+
void SetUp() override
200200
{
201201
// Init simulation
202202
simulation = sofa::simulation::getSimulation();
@@ -281,7 +281,7 @@ struct LinearElasticity_test : public sofa::testing::BaseSimulationTest, sofa::t
281281
}
282282
return true;
283283
}
284-
void TearDown()
284+
void TearDown() override
285285
{
286286
if (tractionStruct.root!=nullptr)
287287
sofa::simulation::node::unload(tractionStruct.root);

Sofa/GL/src/sofa/gl/GLSLShader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ class GLSLFileListener : public helper::system::FileEventListener
4343
}
4444

4545
/// Inherited from FileEventListener
46-
void fileHasChanged(const std::string& filename){
46+
void fileHasChanged(const std::string& filename) override
47+
{
4748
/// We are recompiling & re-initializing all the shaders...
4849
/// If this become a bottleneck we can do finer grain updates to
4950
/// speed up the thing.

Sofa/framework/Simulation/Graph/test/Simulation_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ template <class Object>
4646
struct InstrumentedObject : public Object
4747
{
4848
InstrumentedObject() { objectCounter++; }
49-
~InstrumentedObject() { objectCounter--; }
49+
~InstrumentedObject() override { objectCounter--; }
5050
};
5151

5252
/// Component with a sub-component

0 commit comments

Comments
 (0)