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:
parent
b0669ab4e3
commit
e79add27a8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user