summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-08-09 18:05:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-08-09 18:05:07 +0200
commit7cd72871fa675460d5d8e2f016a50a6aab78c6d5 (patch)
tree62336095324bf6d8dba04e757d4ca7fc6f1c9dab
parentc172c327c2b927427c24a7e3a5f345673d0e5929 (diff)
busywork
-rw-r--r--compat/variance.hpp7
-rw-r--r--logic/pipeline.hpp2
2 files changed, 4 insertions, 5 deletions
diff --git a/compat/variance.hpp b/compat/variance.hpp
index 7a83154c..237bb51a 100644
--- a/compat/variance.hpp
+++ b/compat/variance.hpp
@@ -18,16 +18,15 @@
// Comparison of Several Algorithms for Computing Sample Means and Variances.
// Journal of the American Statistical Association, Vol. 69, No. 348, 859-866.
-class variance
+class variance final
{
double m_old, m_new, s_old, s_new;
- std::uintptr_t cnt;
+ std::uintptr_t cnt = 0;
public:
using size_type = std::uintptr_t;
- variance() : cnt(0) {}
-
+ variance& operator=(variance const&) = default;
void clear() { *this = variance(); }
size_type count() { return cnt; }
diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp
index b293663f..cdcf0b41 100644
--- a/logic/pipeline.hpp
+++ b/logic/pipeline.hpp
@@ -116,7 +116,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread, private bits
//state_ state, scaled_state;
state_ scaled_state;
- ns backlog_time { ns{} };
+ ms backlog_time {};
bool tracking_started = false;