From 4373c0a63520be384ec4335ce299e24cad6974fe Mon Sep 17 00:00:00 2001 From: Cristian Tibirna Date: Fri, 19 Nov 2021 08:21:04 -0500 Subject: [PATCH] FileHistory: use named constants where appropriate --- src/FileHistory.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FileHistory.cc b/src/FileHistory.cc index ca115cc..77ed4b0 100644 --- a/src/FileHistory.cc +++ b/src/FileHistory.cc @@ -119,15 +119,15 @@ void FileHistory::clear(bool complete) { if (testFlag(REL_DATE_F)) { secs = QDateTime::currentDateTime().toTime_t(); - headerInfo[5] = "Last Change"; + headerInfo[ColumnType::TIME_COL] = "Last Change"; } else { secs = 0; - headerInfo[5] = "Author Date"; + headerInfo[ColumnType::TIME_COL] = "Author Date"; } rowCnt = revOrder.count(); annIdValid = false; endResetModel(); - emit headerDataChanged(Qt::Horizontal, 0, 5); + emit headerDataChanged(Qt::Horizontal, 0, ColumnType::TIME_COL); } void FileHistory::on_newRevsAdded(const FileHistory* fh, const QVector& shaVec) { -- 2.11.4.GIT