mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-09 11:16:48 +08:00
Use std::move (#4656)
This commit is contained in:
parent
a9ea225cad
commit
d58e3f08d0
@ -3944,8 +3944,8 @@ template <typename Locale> class format_facet : public Locale::facet {
|
|||||||
explicit format_facet(string_view sep = "", std::string grouping = "\3",
|
explicit format_facet(string_view sep = "", std::string grouping = "\3",
|
||||||
std::string decimal_point = ".")
|
std::string decimal_point = ".")
|
||||||
: separator_(sep.data(), sep.size()),
|
: separator_(sep.data(), sep.size()),
|
||||||
grouping_(grouping),
|
grouping_(std::move(grouping)),
|
||||||
decimal_point_(decimal_point) {}
|
decimal_point_(std::move(decimal_point)) {}
|
||||||
|
|
||||||
auto put(appender out, loc_value val, const format_specs& specs) const
|
auto put(appender out, loc_value val, const format_specs& specs) const
|
||||||
-> bool {
|
-> bool {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user