From 1cb47fe58781cc09af6eca929b9b05116787cb0d Mon Sep 17 00:00:00 2001 From: silverqx Date: Mon, 24 Jul 2023 20:57:08 +0200 Subject: [PATCH] tom fixed clazy warning for Qt5 --- tom/src/tom/application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tom/src/tom/application.cpp b/tom/src/tom/application.cpp index c9a439c72..a4ac627af 100644 --- a/tom/src/tom/application.cpp +++ b/tom/src/tom/application.cpp @@ -443,7 +443,13 @@ void Application::printFullVersions() const note(QStringLiteral("tom "), false); info(TINYTOM_VERSION_STR); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) for (const auto &[subsectionName, abouts] : createVersionsSubsection()) { +#else + // To avoid clazy warning + const auto versions = createVersionsSubsection(); + for (const auto &[subsectionName, abouts] : versions) { +#endif // Subsection name is optional if (subsectionName) { newLine();