Remove and disallow unused copy constructor

This commit is contained in:
Dmitry-Me 2017-08-23 17:54:20 +03:00
parent 167cfb1ac5
commit 7fba6ecef1
2 changed files with 1 additions and 10 deletions

View File

@ -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();

View File

@ -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;