From ec397d957a3fc9eff63f3d1e902c2dbd1efe0af2 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 25 Jun 2023 19:52:20 +0000 Subject: [PATCH] Gui: Action.cpp minor code formatting tweak Utilize the `+=` assignment operator for readability --- src/Gui/Action.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Gui/Action.cpp b/src/Gui/Action.cpp index ce4627c612..8907d05a47 100644 --- a/src/Gui/Action.cpp +++ b/src/Gui/Action.cpp @@ -1051,14 +1051,13 @@ void RecentMacrosAction::setFiles(const QStringList& files) if (!existingCommands.isEmpty()) { auto msgMain = QStringLiteral("Recent macros : keyboard shortcut(s)"); for (int index = 0; index < accel_col.count(); index++) { - msgMain = msgMain + QStringLiteral(" %1").arg(accel_col[index]); + msgMain += QStringLiteral(" %1").arg(accel_col[index]); } - msgMain = msgMain + QStringLiteral(" disabled because of conflicts with"); + msgMain += QStringLiteral(" disabled because of conflicts with"); for (int index = 0; index < existingCommands.count(); index++) { - msgMain = msgMain + QStringLiteral(" %1").arg(existingCommands[index]); + msgMain += QStringLiteral(" %1").arg(existingCommands[index]); } - msgMain = msgMain - + QStringLiteral(" respectively.\nHint: In Preferences -> Python -> Macro ->" + msgMain += QStringLiteral(" respectively.\nHint: In Preferences -> Python -> Macro ->" " Recent Macros menu -> Keyboard Modifiers this should be Ctrl+Shift+" " by default, if this is now blank then you should revert it back to" " Ctrl+Shift+ by pressing both keys at the same time.");