summaryrefslogtreecommitdiff
path: root/src/timers.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-26 23:32:03 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-26 23:32:03 -0400
commit57bb7593059242652c57aae4391b45416dc7fa70 (patch)
tree80b1b21308a0ce7e55bc5b8e278ed6cc95c07e8c /src/timers.cpp
parent6e6b6b46aabfb3e558f66bd0fdc528e93505cf76 (diff)
Trying to make things a little more const-safe, a work in progress but this is a bit better.
Diffstat (limited to 'src/timers.cpp')
-rw-r--r--src/timers.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/timers.cpp b/src/timers.cpp
index df3f2d228..5e06d5bd3 100644
--- a/src/timers.cpp
+++ b/src/timers.cpp
@@ -45,7 +45,7 @@ void Timer::SetTimer(time_t t)
/** Retrieve the triggering time
* @return The trigger time
*/
-const time_t Timer::GetTimer()
+time_t Timer::GetTimer() const
{
return trigger;
}
@@ -53,7 +53,7 @@ const time_t Timer::GetTimer()
/** Returns true if the timer is set to repeat
* @return Returns true if the timer is set to repeat
*/
-const bool Timer::GetRepeat()
+bool Timer::GetRepeat() const
{
return repeat;
}
@@ -61,7 +61,7 @@ const bool Timer::GetRepeat()
/** Returns the time this timer was created
* @return The time this timer was created
*/
-const time_t Timer::GetSetTime()
+time_t Timer::GetSetTime() const
{
return settime;
}
@@ -69,7 +69,7 @@ const time_t Timer::GetSetTime()
/** Returns the interval between ticks
* @return The interval
*/
-const long Timer::GetSecs()
+long Timer::GetSecs() const
{
return secs;
}