diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-02-16 11:44:57 -0700 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-02-16 22:08:55 +0000 |
commit | 27c30ca06344cc686130155aad10095ad009d7d7 (patch) | |
tree | fe76f87680d22ea7c41effb6c22f314f646d6fe4 /Userland/Games/GameOfLife/Pattern.cpp | |
parent | 9521f719440d3ecbb5f06dbd86ca646f14bf862b (diff) | |
download | serenity-27c30ca06344cc686130155aad10095ad009d7d7.zip |
Games: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
Diffstat (limited to 'Userland/Games/GameOfLife/Pattern.cpp')
-rw-r--r-- | Userland/Games/GameOfLife/Pattern.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Userland/Games/GameOfLife/Pattern.cpp b/Userland/Games/GameOfLife/Pattern.cpp index 35376c6375..5c26c6dc84 100644 --- a/Userland/Games/GameOfLife/Pattern.cpp +++ b/Userland/Games/GameOfLife/Pattern.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Ryan Wilson <ryan@rdwilson.xyz> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -16,10 +17,6 @@ Pattern::Pattern(Vector<String> pattern) m_pattern = move(pattern); } -Pattern::~Pattern() -{ -} - void Pattern::set_action(GUI::Action* action) { m_action = action; |