Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/RTOScppTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ITask {

/**
* @brief Get the name of the task.
* @return const char* Task name, nullptr if the task is not created.
* @return const char* Task name.
*/
virtual const char* getName() const = 0;

Expand Down Expand Up @@ -452,12 +452,9 @@ class Task : public ITask {

/**
* @brief Get the name of the task.
* @return const char* Task name, nullptr if the task is not created.
* @return const char* Task name.
*/
const char* getName() const {
if (!isCreated()) return nullptr;
return _policy.getName();
}
const char* getName() const { return _policy.getName(); }

/**
* @brief Get the parameters of the task.
Expand Down