We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
noExplicitConstructor
google-explicit-constructor
1 parent f85c68a commit 1f8f268Copy full SHA for 1f8f268
1 file changed
lib/timer.h
@@ -73,7 +73,7 @@ class CPPCHECKLIB Timer {
73
using Clock = std::chrono::high_resolution_clock;
74
using TimePoint = std::chrono::time_point<Clock>;
75
76
- Timer(std::string str, TimerResultsIntf* timerResults = nullptr);
+ explicit Timer(std::string str, TimerResultsIntf* timerResults = nullptr);
77
~Timer();
78
79
Timer(const Timer&) = delete;
@@ -96,7 +96,7 @@ class CPPCHECKLIB Timer {
96
class CPPCHECKLIB OneShotTimer
97
{
98
public:
99
- OneShotTimer(std::string name);
+ explicit OneShotTimer(std::string name);
100
private:
101
std::unique_ptr<TimerResultsIntf> mResults;
102
std::unique_ptr<Timer> mTimer;
0 commit comments