┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/selectionmode/actiontexthelper.h
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-01-22 16:15:09 +0100
committerMéven Car <[email protected]>2026-01-22 16:27:11 +0100
commit1acd0dfe09a34817d8daf58db2c53b2262eec7b7 (patch)
tree94cab48dc8ad7c79c4fed016b8d0935c4e8dc3e5 /src/selectionmode/actiontexthelper.h
parenta403c0c6058d5064b8cc439edb41eb52ae384046 (diff)
clang-tidy: avoid copy, use const references
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} { };
};
/**