diff options
author | Pixel <pixel@nobis-crew.org> | 2012-04-01 07:18:00 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2012-04-01 07:18:00 -0700 |
commit | 1fdf750ee66ee9e4e872d2810e9ca3bcfa2d555e (patch) | |
tree | 2d7b8ddbae76d1924fec41bc74f7ebeb730ac6ff /src/TaskMan.cc | |
parent | 8dfe080bf03fde34415f3edfbb0426260eeaeaec (diff) |
More code cleanup.
Diffstat (limited to 'src/TaskMan.cc')
-rw-r--r-- | src/TaskMan.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TaskMan.cc b/src/TaskMan.cc index b909caa..8fd6df5 100644 --- a/src/TaskMan.cc +++ b/src/TaskMan.cc @@ -8,15 +8,15 @@ class Stopper : public Balau::Task { Stopper(int code) : m_code(code) { } private: virtual void Do(); - virtual const char * getName(); + virtual const char * getName() const; int m_code; }; void Stopper::Do() { - getMyTaskMan()->stopMe(m_code); + getTaskMan()->stopMe(m_code); } -const char * Stopper::getName() { +const char * Stopper::getName() const { return "Stopper"; } @@ -321,7 +321,7 @@ int Balau::TaskMan::mainLoop() { void Balau::TaskMan::registerTask(Balau::Task * t, Balau::Task * stick) { if (stick) { - TaskMan * tm = stick->getMyTaskMan(); + TaskMan * tm = stick->getTaskMan(); tm->addToPending(t); tm->m_evt.send(); } else { |