diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-26 10:38:49 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-12-27 20:19:41 +0100 |
commit | 3e0ca5db7698d59c6f2e9e7ae3a3a1654641eb4e (patch) | |
tree | 7e1d02223b3acaf2500c34d2795ee8a71fc0cf47 /lib/eventitem.h | |
parent | 674e984e459375974f619d0e778d43a2cc928dc3 (diff) | |
download | libquotient-3e0ca5db7698d59c6f2e9e7ae3a3a1654641eb4e.tar.gz libquotient-3e0ca5db7698d59c6f2e9e7ae3a3a1654641eb4e.zip |
EventItem::setUserData: use std::move
Fixes a clang-tidy warning.
Diffstat (limited to 'lib/eventitem.h')
-rw-r--r-- | lib/eventitem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/eventitem.h b/lib/eventitem.h index 0ab1a01d..b411a90c 100644 --- a/lib/eventitem.h +++ b/lib/eventitem.h @@ -57,7 +57,7 @@ public: } /// Store arbitrary data with the event item - void setUserData(std::any userData) { data = userData; } + void setUserData(std::any userData) { data = std::move(userData); } /// Obtain custom data previously stored with the event item const std::any& userdata() const { return data; } std::any& userData() { return data; } |