Commit 89581b60 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Remove the lambda

parent 684fea48
......@@ -193,17 +193,14 @@ public:
*/
const auto spaceSplitted = splitShortcutString(shortcutString);
const auto list = [spaceSplitted] {
QStringList shortcutList;
shortcutList.reserve(spaceSplitted.size() * 2);
for (const QString &shortcut : spaceSplitted) {
QStringList list = shortcut.split(QLatin1Char('+'), SkipEmptyParts);
if (shortcut.endsWith(QLatin1String("+"))) {
list.append(QStringLiteral("+"));
}
QStringList list;
list.reserve(spaceSplitted.size() * 2);
for (const QString &shortcut : spaceSplitted) {
QStringList list = shortcut.split(QLatin1Char('+'), SkipEmptyParts);
if (shortcut.endsWith(QLatin1String("+"))) {
list.append(QStringLiteral("+"));
}
return shortcutList;
}();
}
/**
* Create rects for each string from the previous step
......
Markdown is supported
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