diff --git a/src/buildings/test/buildings-channel-condition-model-test.cc b/src/buildings/test/buildings-channel-condition-model-test.cc index 2924d4051..eece8b674 100644 --- a/src/buildings/test/buildings-channel-condition-model-test.cc +++ b/src/buildings/test/buildings-channel-condition-model-test.cc @@ -59,12 +59,12 @@ class BuildingsChannelConditionModelTestCase : public TestCase /** * Struct containing the parameters for each test */ - typedef struct + struct TestVector { Vector m_positionA; //!< the position of the first node Vector m_positionB; //!< the position of the second node ChannelCondition::LosConditionValue m_losCond; //!< the correct channel condition - } TestVector; + }; TestVectors m_testVectors; //!< array containg all the test vectors }; diff --git a/src/buildings/test/three-gpp-v2v-channel-condition-model-test.cc b/src/buildings/test/three-gpp-v2v-channel-condition-model-test.cc index ddb2f4eaf..b7e15b635 100644 --- a/src/buildings/test/three-gpp-v2v-channel-condition-model-test.cc +++ b/src/buildings/test/three-gpp-v2v-channel-condition-model-test.cc @@ -68,13 +68,13 @@ class ThreeGppV2vBuildingsChCondModelTestCase : public TestCase /** * Struct containing the parameters for each test */ - typedef struct + struct TestVector { Vector m_positionA; //!< the position of the first node Vector m_positionB; //!< the position of the second node ChannelCondition::LosConditionValue m_losCond; //!< the correct channel condition TypeId m_typeId; //!< the type ID of the channel condition model to be used - } TestVector; + }; TestVectors m_testVectors; //!< array containg all the test vectors }; @@ -221,13 +221,13 @@ class ThreeGppV2vUrbanLosNlosvChCondModelTestCase : public TestCase /** * Struct containing the parameters for each test */ - typedef struct + struct TestVector { Vector m_positionA; //!< the position of the first node Vector m_positionB; //!< the position of the second node double m_pLos; //!< LOS probability TypeId m_typeId; //!< the type ID of the channel condition model to be used - } TestVector; + }; TestVectors m_testVectors; //!< array containing all the test vectors Ptr m_condModel; //!< the channel condition model @@ -386,13 +386,13 @@ class ThreeGppV2vHighwayLosNlosvChCondModelTestCase : public TestCase /** * Struct containing the parameters for each test */ - typedef struct + struct TestVector { Vector m_positionA; //!< the position of the first node Vector m_positionB; //!< the position of the second node double m_pLos; //!< LOS probability TypeId m_typeId; //!< the type ID of the channel condition model to be used - } TestVector; + }; TestVectors m_testVectors; //!< array containing all the test vectors Ptr m_condModel; //!< the channel condition model diff --git a/src/energy/examples/rv-battery-model-test.cc b/src/energy/examples/rv-battery-model-test.cc index 42a88469b..cb3503cb6 100644 --- a/src/energy/examples/rv-battery-model-test.cc +++ b/src/energy/examples/rv-battery-model-test.cc @@ -89,13 +89,13 @@ class BatteryLifetimeTest Time expLifetime); /// Load profile of the battery - typedef struct LoadProfile + struct LoadProfile { std::vector loads; //!< Loads container std::vector