Skip to content

Commit e7005b2

Browse files
committed
Mark TrafficLight class as final
1 parent 03a1ff0 commit e7005b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dsm/headers/TrafficLight.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace dsm {
4949
void reset();
5050
};
5151

52-
class TrafficLight : public Intersection {
52+
class TrafficLight final : public Intersection {
5353
private:
5454
std::unordered_map<Id, std::unordered_map<Direction, TrafficLightCycle>> m_cycles;
5555
std::unordered_map<Id, std::unordered_map<Direction, TrafficLightCycle>>
@@ -154,6 +154,6 @@ namespace dsm {
154154
/// @brief Resets all traffic light cycles
155155
/// @details For more info, see @ref TrafficLightCycle::reset()
156156
void resetCycles();
157-
inline bool isTrafficLight() const noexcept final { return true; }
157+
inline bool isTrafficLight() const noexcept { return true; }
158158
};
159159
} // namespace dsm

0 commit comments

Comments
 (0)