Skip to content

Commit

Permalink
tom fixed clazy warning for Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 24, 2023
1 parent 4266268 commit 1cb47fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tom/src/tom/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1cb47fe

Please sign in to comment.