From 70d9ca7b870e35109dfdbe9ab3c63ba094a75379 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 6 Dec 2017 19:02:11 +0900 Subject: converters.h: Use perfect forwarding --- converters.h | 4 ++-- 1 file 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 - inline QJsonValue toJson(T val) + inline QJsonValue toJson(T&& val) { - return QJsonValue(val); + return QJsonValue(std::forward(val)); } template -- cgit v1.2.3