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

Merge branch 'fix_cpp_checks' into 'master'

Fix cpp checks

See merge request !126
parents 9ba36574 91887738
Pipeline #4254 passed with stage
in 63 minutes and 46 seconds
...@@ -38,7 +38,7 @@ echo "CPPCHECK Summary" ...@@ -38,7 +38,7 @@ echo "CPPCHECK Summary"
echo "==============================================================================" echo "=============================================================================="
echo -e "${NC}" echo -e "${NC}"
MAX_COUNT=8 MAX_COUNT=6
if [ $COUNT -gt $MAX_COUNT ]; then if [ $COUNT -gt $MAX_COUNT ]; then
echo -e ${WARNING} echo -e ${WARNING}
......
...@@ -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!
......
Markdown is supported
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