Commit e956bace authored by Jan Möbius's avatar Jan Möbius
Browse files

Silence warnings for timer implementation

parent a6a73227
...@@ -261,7 +261,8 @@ void TimerImplStd::stop(void) ...@@ -261,7 +261,8 @@ void TimerImplStd::stop(void)
// ----------------------------------------------------------------- Timer ---- // ----------------------------------------------------------------- Timer ----
Timer::Timer(void) Timer::Timer(void) :
state_(Stopped)
{ {
#if defined(WIN32) && (defined(_MSC_VER) || defined(__INTEL_COMPILER) || defined(__MINGW32__)) #if defined(WIN32) && (defined(_MSC_VER) || defined(__INTEL_COMPILER) || defined(__MINGW32__))
impl_ = new TimerImplWin32; impl_ = new TimerImplWin32;
...@@ -280,7 +281,7 @@ Timer::Timer(void) ...@@ -280,7 +281,7 @@ Timer::Timer(void)
#else #else
impl_ = new TimerImplStd; impl_ = new TimerImplStd;
#endif #endif
state_ = Stopped;
} }
Timer::~Timer(void) Timer::~Timer(void)
......
...@@ -102,6 +102,9 @@ public: ...@@ -102,6 +102,9 @@ public:
}; };
Timer(void); Timer(void);
Timer(const Timer& _other) = delete;
~Timer(void); ~Timer(void);
/// Returns true if self is in a valid state! /// Returns true if self is in a valid state!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment