chore: Stopwatch, use default for deconstructor and explicit constructor

This commit is contained in:
sithlord48 2025-04-30 22:07:50 -04:00 committed by Nick Bolton
parent 183d660186
commit f68744a36d
2 changed files with 2 additions and 7 deletions

View file

@ -19,11 +19,6 @@ Stopwatch::Stopwatch(bool triggered) : m_mark(0.0), m_triggered(triggered), m_st
}
}
Stopwatch::~Stopwatch()
{
// do nothing
}
double Stopwatch::reset()
{
if (m_stopped) {

View file

@ -21,8 +21,8 @@ public:
The default constructor does an implicit reset() or setTrigger().
If triggered == false then the clock starts ticking.
*/
Stopwatch(bool triggered = false);
~Stopwatch();
explicit Stopwatch(bool triggered = false);
~Stopwatch() = default;
//! @name manipulators
//@{