diff --git a/src/plugins/todo/constants.h b/src/plugins/todo/constants.h index c3c488f0e8b..c25f4b877cf 100644 --- a/src/plugins/todo/constants.h +++ b/src/plugins/todo/constants.h @@ -59,7 +59,7 @@ enum OutputColumnIndex { OUTPUT_COLUMN_TEXT, OUTPUT_COLUMN_FILE, OUTPUT_COLUMN_LINE, - OUTPUT_COLUMN_LAST + OUTPUT_COLUMN_COUNT }; const char OUTPUT_COLUMN_TEXT_TITLE[] = QT_TRANSLATE_NOOP("Todo::Internal::TodoItemsModel", "Description"); diff --git a/src/plugins/todo/todoitemsmodel.cpp b/src/plugins/todo/todoitemsmodel.cpp index 6fdca97d5de..4128fadfd8f 100644 --- a/src/plugins/todo/todoitemsmodel.cpp +++ b/src/plugins/todo/todoitemsmodel.cpp @@ -70,7 +70,7 @@ int TodoItemsModel::columnCount(const QModelIndex &parent) const { Q_UNUSED(parent) - return Constants::OUTPUT_COLUMN_LAST; + return Constants::OUTPUT_COLUMN_COUNT; } QVariant TodoItemsModel::data(const QModelIndex &index, int role) const