From 5c8b820b7b6bc767f59969b098ee1ad90ee17579 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Wed, 7 Dec 2022 19:30:05 +0000 Subject: [PATCH] Remove unneeded typedef in struct and enum --- .../buildings-channel-condition-model-test.cc | 4 +- ...ee-gpp-v2v-channel-condition-model-test.cc | 12 ++-- src/energy/examples/rv-battery-model-test.cc | 4 +- src/internet/model/icmpv6-header.h | 4 +- src/internet/model/ipv6-raw-socket-impl.h | 8 +-- src/internet/model/tcp-bbr.h | 4 +- src/internet/model/tcp-header.h | 4 +- src/internet/model/tcp-prr-recovery.h | 4 +- src/internet/model/tcp-socket-state.h | 24 ++++---- src/internet/model/tcp-socket.h | 4 +- src/lr-wpan/model/lr-wpan-mac.h | 60 +++++++++---------- src/lr-wpan/model/lr-wpan-phy.h | 28 ++++----- src/lr-wpan/test/lr-wpan-ack-test.cc | 4 +- src/lte/model/lte-rlc-am-header.h | 32 +++++----- src/lte/model/lte-rlc-am.h | 4 +- src/lte/model/lte-rlc-header.h | 12 ++-- src/lte/model/lte-rlc-sdu-status-tag.h | 6 +- src/lte/model/lte-rlc-um.h | 4 +- src/lte/test/lte-test-entities.h | 8 +-- src/netanim/model/animation-interface.h | 32 +++++----- src/network/test/pcap-file-test-suite.cc | 4 +- src/network/utils/pcap-file.h | 8 +-- .../channel-condition-model-test-suite.cc | 4 +- .../test/propagation-loss-model-test-suite.cc | 12 ++-- ...e-gpp-propagation-loss-model-test-suite.cc | 28 ++++----- .../test/sixlowpan-iphc-stateful-test.cc | 4 +- src/uan/model/uan-mac-cw.h | 4 +- src/uan/model/uan-tx-mode.h | 4 +- src/wifi/model/ap-wifi-mac.h | 6 +- src/wifi/model/non-ht/dsss-error-rate-model.h | 4 +- utils/print-introspected-doxygen.cc | 4 +- 31 files changed, 172 insertions(+), 172 deletions(-) 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