Remove and disallow unused copy constructor
This commit is contained in:
parent
167cfb1ac5
commit
7fba6ecef1
|
@ -82,15 +82,6 @@ Timer::Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf
|
||||||
_start = std::clock();
|
_start = std::clock();
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer::Timer(const Timer& other)
|
|
||||||
: _str(other._str)
|
|
||||||
, _timerResults(other._timerResults)
|
|
||||||
, _start(other._start)
|
|
||||||
, _showtimeMode(other._showtimeMode)
|
|
||||||
, _stopped(other._stopped)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Timer::~Timer()
|
Timer::~Timer()
|
||||||
{
|
{
|
||||||
Stop();
|
Stop();
|
||||||
|
|
|
@ -70,11 +70,11 @@ private:
|
||||||
class CPPCHECKLIB Timer {
|
class CPPCHECKLIB Timer {
|
||||||
public:
|
public:
|
||||||
Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf* timerResults = nullptr);
|
Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf* timerResults = nullptr);
|
||||||
Timer(const Timer& other);
|
|
||||||
~Timer();
|
~Timer();
|
||||||
void Stop();
|
void Stop();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Timer(const Timer& other); // disallow copying
|
||||||
Timer& operator=(const Timer&); // disallow assignments
|
Timer& operator=(const Timer&); // disallow assignments
|
||||||
|
|
||||||
const std::string _str;
|
const std::string _str;
|
||||||
|
|
Loading…
Reference in New Issue