chore: Stopwatch, use default for deconstructor and explicit constructor
This commit is contained in:
parent
183d660186
commit
f68744a36d
2 changed files with 2 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
//@{
|
||||
|
|
|
|||
Loading…
Reference in a new issue