aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 19:02:11 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-12-06 19:02:11 +0900
commitea2dcf5d6c9329a14b4e0039bd2dc45ac3fd89d8 (patch)
treeef61add4a330c82d1ea311eb38edb43b280b3215
parente6a7ca28ce03ff1277430816dc5a41d503f93555 (diff)
downloadlibquotient-ea2dcf5d6c9329a14b4e0039bd2dc45ac3fd89d8.tar.gz
libquotient-ea2dcf5d6c9329a14b4e0039bd2dc45ac3fd89d8.zip
converters.h: Use perfect forwarding
-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>