0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00

jsonhelper: C++ standard appears to indicate no need to do explicit std::move on return value

This edit also silences a warning in clang.

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan 2019-09-07 00:20:32 -06:00 committed by Lev Stipakov
parent b0669ab4e3
commit e79add27a8
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -717,7 +717,7 @@ namespace openvpn {
inline Json::Value dict_result(Json::Value jr)
{
if (jr.isObject())
return std::move(jr);
return jr;
else {
Json::Value jret(Json::objectValue);
jret["result"] = std::move(jr);