[lldb/Utility] Add std::move to make placate clang 3.8

This fixes an error thrown by clang 3.8 that no viable conversion from
returned value to the function return type.
This commit is contained in:
Jonas Devlieghere 2020-01-13 18:23:39 -08:00
parent 84baf123a5
commit d1e3b23be4
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ static StructuredData::ObjectSP ParseJSONObject(json::Object *object) {
if (StructuredData::ObjectSP value_sp = ParseJSONValue(value)) if (StructuredData::ObjectSP value_sp = ParseJSONValue(value))
dict_up->AddItem(key, value_sp); dict_up->AddItem(key, value_sp);
} }
return dict_up; return std::move(dict_up);
} }
static StructuredData::ObjectSP ParseJSONArray(json::Array *array) { static StructuredData::ObjectSP ParseJSONArray(json::Array *array) {
@ -87,7 +87,7 @@ static StructuredData::ObjectSP ParseJSONArray(json::Array *array) {
if (StructuredData::ObjectSP value_sp = ParseJSONValue(value)) if (StructuredData::ObjectSP value_sp = ParseJSONValue(value))
array_up->AddItem(value_sp); array_up->AddItem(value_sp);
} }
return array_up; return std::move(array_up);
} }
StructuredData::ObjectSP StructuredData::ObjectSP