Unverified Commit 4c2e7317 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Initialize user id list with a whitespace

Used ki18n(" ") as initializer because initializing with empty
string leads to (I18N_EMPTY_MESSAGE) in the first substituion.
parent b11dfc5f
Pipeline #227617 passed with stage
in 5 minutes and 54 seconds
......@@ -565,7 +565,9 @@ static void handleOwnerTrust(const std::vector<ImportResultData> &results)
}
const auto toTrustOwnerUserIDs{toTrustOwner.userIDs()};
const KLocalizedString uids = std::accumulate(toTrustOwnerUserIDs.cbegin(), toTrustOwnerUserIDs.cend(), KLocalizedString{}, [](KLocalizedString temp, const auto &uid) {
// ki18n(" ") as initializer because initializing with empty string leads to
// (I18N_EMPTY_MESSAGE)
const KLocalizedString uids = std::accumulate(toTrustOwnerUserIDs.cbegin(), toTrustOwnerUserIDs.cend(), KLocalizedString{ki18n(" ")}, [](KLocalizedString temp, const auto &uid) {
return kxi18nc("@info", "%1<item>%2</item>").subs(temp).subs(Formatting::prettyNameAndEMail(uid));
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment