Skip to content

Commit 7fbc34b

Browse files
committed
noexcept TimerImpl
1 parent 242cf99 commit 7fbc34b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/common/classes/TimerImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void TimerImpl::reset(unsigned int timeout)
9797
m_fireTime = m_expTime;
9898

9999
// new ITimer timeout, ms
100-
SINT64 tout = (m_expTime - curTime) * (1000 * 1000);
100+
const SINT64 tout = (m_expTime - curTime) * (1000 * 1000);
101101

102102
timerCtrl->start(&s, this, tout);
103103
check(&s);

src/common/classes/TimerImpl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TimerImpl :
4949
public RefCntIface<ITimerImpl<TimerImpl, CheckStatusWrapper> >
5050
{
5151
public:
52-
TimerImpl() :
52+
TimerImpl() noexcept :
5353
m_fireTime(0),
5454
m_expTime(0),
5555
m_handlerTid(0)
@@ -75,7 +75,7 @@ class TimerImpl :
7575
void reset(unsigned int timeout);
7676
void stop();
7777

78-
SINT64 getExpireClock() const
78+
SINT64 getExpireClock() const noexcept
7979
{
8080
return m_expTime;
8181
}
@@ -94,7 +94,7 @@ template <typename T>
9494
class TimerWithRef : public TimerImpl
9595
{
9696
public:
97-
TimerWithRef(T* obj) :
97+
TimerWithRef(T* obj) noexcept :
9898
TimerImpl(),
9999
m_ref(obj)
100100
{}

0 commit comments

Comments
 (0)