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();
|
||||
}
|
||||
|
||||
Timer::Timer(const Timer& other)
|
||||
: _str(other._str)
|
||||
, _timerResults(other._timerResults)
|
||||
, _start(other._start)
|
||||
, _showtimeMode(other._showtimeMode)
|
||||
, _stopped(other._stopped)
|
||||
{
|
||||
}
|
||||
|
||||
Timer::~Timer()
|
||||
{
|
||||
Stop();
|
||||
|
|
|
@ -70,11 +70,11 @@ private:
|
|||
class CPPCHECKLIB Timer {
|
||||
public:
|
||||
Timer(const std::string& str, unsigned int showtimeMode, TimerResultsIntf* timerResults = nullptr);
|
||||
Timer(const Timer& other);
|
||||
~Timer();
|
||||
void Stop();
|
||||
|
||||
private:
|
||||
Timer(const Timer& other); // disallow copying
|
||||
Timer& operator=(const Timer&); // disallow assignments
|
||||
|
||||
const std::string _str;
|
||||
|
|
Loading…
Reference in New Issue