removed superfluous move of temporary.

This commit is contained in:
Gulliver 2023-06-12 15:41:04 +02:00
parent 43ab82ea27
commit bb58cc1a8b

View File

@ -1300,7 +1300,7 @@ namespace crow
type t() const { return t_; }
/// Create an empty json value (outputs "{}" instead of a "null" string)
static crow::json::wvalue empty_object() { return crow::json::wvalue(std::move(crow::json::wvalue::object())); }
static crow::json::wvalue empty_object() { return crow::json::wvalue::object(); }
private:
type t_{type::Null}; ///< The type of the value.