From 609c483b9a943984f57c15fdb2fbe6e167fbc9ab Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 20 Feb 2023 19:55:37 +0100 Subject: [PATCH] Remove variable that is only set but never read --- gui/tagedit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gui/tagedit.cpp b/gui/tagedit.cpp index ab03b4e..ed48389 100644 --- a/gui/tagedit.cpp +++ b/gui/tagedit.cpp @@ -304,7 +304,7 @@ void TagEdit::setupUi() // there are tags assigned // setup editing controls TagFieldEdit *edit = nullptr; - int rowOverall = 0, rowLeft = 0, rowRight = 0; + auto rowLeft = 0, rowRight = 0; for (const auto &item : Settings::values().editor.fields.items()) { const auto field = static_cast(item.id().toInt()); if (!item.isChecked() || !hasField(field)) { @@ -372,7 +372,6 @@ void TagEdit::setupUi() } // update the current position // note: The position is required to keep the order of Settings::fieldModel().fields(). - ++rowOverall; switch (field) { case KnownField::Cover: case KnownField::Lyrics: