aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/eventitem.h2
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; }