Added the const qualifier to some methods. When I have time, I SHOULD MAKE A PASS to add all needed const qualifier
This commit is contained in:
parent
bbcc262ac5
commit
cabfdfcfb3
@ -229,7 +229,7 @@ public:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
unsigned int count()
|
||||
unsigned int count() const
|
||||
{
|
||||
unsigned int counter(0);
|
||||
if(isListEmpty(_head->_next))return counter;
|
||||
@ -321,7 +321,7 @@ protected:
|
||||
|
||||
return true;
|
||||
}
|
||||
boolean isListEmpty(Dictionary *node) {return node == NULL;}
|
||||
boolean isListEmpty(Dictionary *node) const {return node == NULL;}
|
||||
|
||||
char *_parameter;
|
||||
T *_value;
|
||||
|
@ -239,7 +239,7 @@ void TaskSchedulerManager::run()
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int TaskSchedulerManager::taskCount()
|
||||
unsigned int TaskSchedulerManager::taskCount() const
|
||||
{
|
||||
return _taskDataDictio.count();
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ namespace TaskSchedulerManagerHelper
|
||||
static Schedule *scheduleBuilder();
|
||||
Schedule *setMillis(uint32_t millis);
|
||||
Schedule *setSeconds(uint32_t seconds);
|
||||
Schedule *setMinutes(uint32_t minutes);
|
||||
Schedule *setMinutes(uint32_t minutes);
|
||||
Schedule *setHours(uint16_t hours);
|
||||
Schedule *setDateTime(DateTime &dateTime);
|
||||
Schedule *setDays(uint8_t days);
|
||||
@ -75,7 +75,7 @@ class TaskSchedulerManager
|
||||
TaskSchedulerManagerHelper::Schedule *getTask(const char *name);
|
||||
TaskSchedulerManagerHelper::Schedule *getTask(uint16_t id);
|
||||
void run();
|
||||
unsigned int taskCount();
|
||||
unsigned int taskCount() const;
|
||||
uint16_t findFreeTaskId();
|
||||
protected:
|
||||
TaskSchedulerManager();
|
||||
|
Loading…
Reference in New Issue
Block a user