┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/actiontexthelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/selectionmode/actiontexthelper.h')
-rw-r--r--src/selectionmode/actiontexthelper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/selectionmode/actiontexthelper.h b/src/selectionmode/actiontexthelper.h
index aa6569411..17cff6e7e 100644
--- a/src/selectionmode/actiontexthelper.h
+++ b/src/selectionmode/actiontexthelper.h
@@ -33,7 +33,7 @@ public:
* The texts can be changed back by calling textsWhenNothingIsSelectedEnabled(false).
* @see textsWhenNothingIsSelectedEnabled()
*/
- void registerTextWhenNothingIsSelected(QAction *action, QString registeredText);
+ void registerTextWhenNothingIsSelected(QAction *action, const QString &registeredText);
/**
* Changes all texts that were registered previously using registerTextWhenNothingIsSelected() to those
@@ -57,8 +57,8 @@ private:
RegisteredActionTextChange(QAction *action, QString registeredText, TextState state)
: action{action}
- , registeredText{registeredText}
- , textStateOfRegisteredText{state} {};
+ , registeredText{std::move(std::move(registeredText))}
+ , textStateOfRegisteredText{state} { };
};
/**