Skip to content

Commit 2d64a94

Browse files
committed
timer.h: fixed noExplicitConstructor selfcheck and google-explicit-constructor clang-tid warnings
1 parent 9ac90b4 commit 2d64a94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/timer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class CPPCHECKLIB Timer {
7373
using Clock = std::chrono::high_resolution_clock;
7474
using TimePoint = std::chrono::time_point<Clock>;
7575

76-
Timer(std::string str, TimerResultsIntf* timerResults = nullptr);
76+
explicit Timer(std::string str, TimerResultsIntf* timerResults = nullptr);
7777
~Timer();
7878

7979
Timer(const Timer&) = delete;
@@ -96,7 +96,7 @@ class CPPCHECKLIB Timer {
9696
class CPPCHECKLIB OneShotTimer
9797
{
9898
public:
99-
OneShotTimer(std::string name);
99+
explicit OneShotTimer(std::string name);
100100
private:
101101
std::unique_ptr<TimerResultsIntf> mResults;
102102
std::unique_ptr<Timer> mTimer;

0 commit comments

Comments
 (0)