From 611880aba8589755d4872b34fc935937d64b2a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 3 Nov 2024 14:41:41 +0100 Subject: [PATCH] Typos --- YACReaderLibrary/db/comic_model.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/YACReaderLibrary/db/comic_model.cpp b/YACReaderLibrary/db/comic_model.cpp index 013bf883..ab231220 100644 --- a/YACReaderLibrary/db/comic_model.cpp +++ b/YACReaderLibrary/db/comic_model.cpp @@ -833,12 +833,12 @@ void ComicModel::takeData(const QList &data) void ComicModel::takeUpdatedData(const QList &updatedData, std::function comparator) { - int lenght = _data.size(); - int lenghtUpdated = updatedData.size(); + int length = _data.size(); + int lengthUpdated = updatedData.size(); int i; // index of the internal data int j; // index of the updated children - for (i = 0, j = 0; i < lenght && j < lenghtUpdated;) { + for (i = 0, j = 0; i < length && j < lengthUpdated;) { auto comic = _data.at(i); auto updatedComic = updatedData.at(j); @@ -869,7 +869,7 @@ void ComicModel::takeUpdatedData(const QList &updatedData, std::fun i++; j++; - lenght++; + length++; continue; } @@ -881,13 +881,13 @@ void ComicModel::takeUpdatedData(const QList &updatedData, std::fun endRemoveRows(); - lenght--; + length--; continue; } } // add remaining comics - for (; j < lenghtUpdated; j++) { + for (; j < lengthUpdated; j++) { beginInsertRows(QModelIndex(), i, i); _data.append(updatedData.at(j)); @@ -898,7 +898,7 @@ void ComicModel::takeUpdatedData(const QList &updatedData, std::fun } // remove remaining comics { - for (; i < lenght; i++) { + for (; i < length; i++) { beginRemoveRows(QModelIndex(), i, i); delete _data.at(i);