diff --git a/src/modules/packagechooser/ItemAppStream.cpp b/src/modules/packagechooser/ItemAppStream.cpp index a3b6e248d..d45fd5b60 100644 --- a/src/modules/packagechooser/ItemAppStream.cpp +++ b/src/modules/packagechooser/ItemAppStream.cpp @@ -21,7 +21,7 @@ static inline quint64 sizeOrder( const QSize& size ) { - return static_cast(size.width()) * static_cast(size.height()); + return static_cast< quint64 >( size.width() ) * static_cast< quint64 >( size.height() ); } /// @brief Sets a screenshot in @p map from @p screenshot, if a usable one is found @@ -55,15 +55,9 @@ static PackageItem fromComponent( AppStream::Pool& pool, AppStream::Component& component ) { #if HAVE_APPSTREAM_VERSION == 0 - auto setActiveLocale = [&component](const QString & locale) - { - component.setActiveLocale( locale ); - }; + auto setActiveLocale = [ &component ]( const QString& locale ) { component.setActiveLocale( locale ); }; #else - auto setActiveLocale = [&pool](const QString & locale) - { - pool.setLocale( locale ); - }; + auto setActiveLocale = [ &pool ]( const QString& locale ) { pool.setLocale( locale ); }; #endif QVariantMap map; diff --git a/src/modules/packagechooser/ItemAppStream.h b/src/modules/packagechooser/ItemAppStream.h index a087a56dc..6b05e2f4a 100644 --- a/src/modules/packagechooser/ItemAppStream.h +++ b/src/modules/packagechooser/ItemAppStream.h @@ -28,9 +28,9 @@ #define HAVE_APPSTREAM_HEADERS AppStreamQt #endif -#include CALAMARES_LT HAVE_APPSTREAM_HEADERS/pool.h CALAMARES_GT -#include CALAMARES_LT HAVE_APPSTREAM_HEADERS/image.h CALAMARES_GT -#include CALAMARES_LT HAVE_APPSTREAM_HEADERS/screenshot.h CALAMARES_GT +#include CALAMARES_LT HAVE_APPSTREAM_HEADERS / pool.h CALAMARES_GT +#include CALAMARES_LT HAVE_APPSTREAM_HEADERS / image.h CALAMARES_GT +#include CALAMARES_LT HAVE_APPSTREAM_HEADERS / screenshot.h CALAMARES_GT #undef CALAMARES_LT #undef CALAMARES_GT