Skip to content

Commit

Permalink
Make clang-tidy happy in kf5 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
milianw committed Apr 24, 2024
1 parent 4d3c208 commit 7c86bb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,11 @@ QProcessEnvironment Util::appImageEnvironment()
KParts::ReadOnlyPart* Util::createPart(const QString& pluginName)
{
#if KCOREADDONS_VERSION >= QT_VERSION_CHECK(5, 86, 0)
QString prefix;

#if KCOREADDONS_VERSION >= QT_VERSION_CHECK(6, 0, 0)
prefix = QStringLiteral("kf6/parts/");
const auto prefix = QStringLiteral("kf6/parts/");
#else
const auto prefix = QLatin1String();
#endif

const auto metadata = KPluginMetaData(prefix + pluginName);
Expand Down

0 comments on commit 7c86bb9

Please sign in to comment.