summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-16 00:23:29 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-16 17:17:13 +0200
commit951cd689791e6ea46b475c34220dd83c3e84828d (patch)
treef811b7d5a550f1f3e1d4bb18358f553a563781c4
parent4a53c66b7f34eb51754583cf98f15efc6e5d67b4 (diff)
downloadserenity-951cd689791e6ea46b475c34220dd83c3e84828d.zip
Shell: Use default instead of an empty constructor/destructor
Default implementations allow for more optimizations. See: https://pvs-studio.com/en/docs/warnings/v832/
-rw-r--r--Userland/Shell/AST.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Shell/AST.h b/Userland/Shell/AST.h
index ce6d286412..0d0d7ed51b 100644
--- a/Userland/Shell/AST.h
+++ b/Userland/Shell/AST.h
@@ -1506,7 +1506,7 @@ namespace AK {
template<>
struct Formatter<Shell::AST::Command> : StandardFormatter {
- Formatter() { }
+ Formatter() = default;
explicit Formatter(StandardFormatter formatter)
: StandardFormatter(formatter)
{