From 2c4f7fae1e4389ff41d54a5dd627b3404ab18978 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 31 Oct 2021 17:13:05 -0600 Subject: [PATCH] AK: Move StandardFormatter argument into base class initializer Subclasses of StandardFormatter don't need to use the formatter argument in their constructor, so move() it into the base class initializer. --- AK/Format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AK/Format.h b/AK/Format.h index 092088284da..37fe5bcc574 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -294,7 +294,7 @@ template struct Formatter>::Type> : StandardFormatter { Formatter() = default; explicit Formatter(StandardFormatter formatter) - : StandardFormatter(formatter) + : StandardFormatter(move(formatter)) { } @@ -305,7 +305,7 @@ template<> struct Formatter : StandardFormatter { Formatter() = default; explicit Formatter(StandardFormatter formatter) - : StandardFormatter(formatter) + : StandardFormatter(move(formatter)) { } @@ -317,7 +317,7 @@ requires(HasFormatter) struct Formatter> : StandardFormatter { Formatter() = default; explicit Formatter(StandardFormatter formatter) - : StandardFormatter(formatter) + : StandardFormatter(move(formatter)) { } void format(FormatBuilder& builder, Vector value)