From 53fab3aa124eb712c0d5c4861438ecdbc5b5c2d5 Mon Sep 17 00:00:00 2001 From: garethsb-sony Date: Thu, 26 Mar 2020 16:23:29 +0000 Subject: [PATCH] Remove redundant std::move noted by gcc 9.2 (-Wredundant-move) --- Release/src/json/json_parsing.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Release/src/json/json_parsing.cpp b/Release/src/json/json_parsing.cpp index 01f0d0b160..a026ecaba2 100644 --- a/Release/src/json/json_parsing.cpp +++ b/Release/src/json/json_parsing.cpp @@ -1040,7 +1040,7 @@ std::unique_ptr JSON_Parser::_ParseArray( case JSON_Parser::Token::TKN_CloseBracket: GetNextToken(tkn); if (tkn.m_error) return utility::details::make_unique(); - return std::move(result); + return result; default: SetErrorCode(tkn, json_error::malformed_array_literal); return utility::details::make_unique(); @@ -1074,7 +1074,7 @@ std::unique_ptr JSON_Parser::_ParseValue( tkn.has_unescape_symbol); GetNextToken(tkn); if (tkn.m_error) return utility::details::make_unique(); - return std::move(value); + return value; } case JSON_Parser::Token::TKN_IntegerLiteral: { @@ -1086,21 +1086,21 @@ std::unique_ptr JSON_Parser::_ParseValue( GetNextToken(tkn); if (tkn.m_error) return utility::details::make_unique(); - return std::move(value); + return value; } case JSON_Parser::Token::TKN_NumberLiteral: { auto value = utility::details::make_unique(tkn.double_val); GetNextToken(tkn); if (tkn.m_error) return utility::details::make_unique(); - return std::move(value); + return value; } case JSON_Parser::Token::TKN_BooleanLiteral: { auto value = utility::details::make_unique(tkn.boolean_val); GetNextToken(tkn); if (tkn.m_error) return utility::details::make_unique(); - return std::move(value); + return value; } case JSON_Parser::Token::TKN_NullLiteral: {