aboutsummaryrefslogtreecommitdiff
path: root/converters.h
diff options
context:
space:
mode:
Diffstat (limited to 'converters.h')
-rw-r--r--converters.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/converters.h b/converters.h
index 5593ee24..9b78eb37 100644
--- a/converters.h
+++ b/converters.h
@@ -25,9 +25,9 @@
namespace QMatrixClient
{
template <typename T>
- inline QJsonValue toJson(T val)
+ inline QJsonValue toJson(T&& val)
{
- return QJsonValue(val);
+ return QJsonValue(std::forward<T>(val));
}
template <typename T>