Skip to content

Commit

Permalink
use explicit keyword for single argument constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
SW-Niko committed Aug 21, 2024
1 parent d59183d commit 56154b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/Statistic.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
template <typename T>
class WeightedAVG {
public:
WeightedAVG(int16_t factor)
explicit WeightedAVG(int16_t factor)
: _countMax(factor)
, _count(0), _countNum(0), _avgV(0), _minV(0), _maxV(0), _lastV(0) {}

Expand Down

0 comments on commit 56154b3

Please sign in to comment.