diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-14 11:37:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-14 11:37:22 +0000 |
| commit | 351f1d03315b84887b7532c35bdd8a49bdce1d43 (patch) | |
| tree | fe1b7051d28b77d9934ace86881261099ec532f7 /src/Timer.cc | |
| parent | d00ef145828941dc15c31bd7c3fc2f69f29c2955 (diff) | |
Using some references instead of pointers for the menus.
Diffstat (limited to 'src/Timer.cc')
| -rw-r--r-- | src/Timer.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Timer.cc b/src/Timer.cc index 95985a01..917bc337 100644 --- a/src/Timer.cc +++ b/src/Timer.cc @@ -33,10 +33,7 @@ #include "BaseDisplay.h" #include "Timer.h" -BTimer::BTimer(BaseDisplay *d, TimeoutHandler *h) { - display = d; - handler = h; - +BTimer::BTimer(BaseDisplay &d, TimeoutHandler &h) : display(d), handler(h) { once = timing = False; } @@ -61,16 +58,16 @@ void BTimer::start(void) { if (! timing) { timing = True; - display->addTimer(this); + display.addTimer(this); } } void BTimer::stop(void) { timing = False; - display->removeTimer(this); + display.removeTimer(this); } void BTimer::fireTimeout(void) { - if (handler) handler->timeout(); + handler.timeout(); } |
