cql: fix pessimizing moves

Remove pessimizing moves, as reported by gcc 9.
This commit is contained in:
Avi Kivity
2019-05-07 09:26:20 +03:00
parent c26ec176dd
commit 03e9cdbfb0
2 changed files with 4 additions and 4 deletions

View File

@@ -194,7 +194,7 @@ make_from_json_function(database& db, const sstring& keyspace, data_type t) {
if (!json_value.isNull()) {
parsed_json_value.emplace(t->from_json_object(json_value, sf));
}
return std::move(parsed_json_value);
return parsed_json_value;
});
}

View File

@@ -288,7 +288,7 @@ private:
if (def->type->is_reversed()) {
ranges.back().reverse();
}
return std::move(ranges);
return ranges;
}
ranges.reserve(cartesian_product_size(vec_of_values));
@@ -317,7 +317,7 @@ private:
}
}
return std::move(ranges);
return ranges;
}
auto values = r->values(options);
@@ -337,7 +337,7 @@ private:
ranges.emplace_back(range_type::make_singular(ValueType::from_optional_exploded(*_schema, std::move(prefix))));
}
return std::move(ranges);
return ranges;
}
public: