summaryrefslogtreecommitdiff
path: root/Userland/Games/Chess/ChessWidget.h
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-02-16 11:44:57 -0700
committerLinus Groh <mail@linusgroh.de>2022-02-16 22:08:55 +0000
commit27c30ca06344cc686130155aad10095ad009d7d7 (patch)
treefe76f87680d22ea7c41effb6c22f314f646d6fe4 /Userland/Games/Chess/ChessWidget.h
parent9521f719440d3ecbb5f06dbd86ca646f14bf862b (diff)
downloadserenity-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/Chess/ChessWidget.h')
-rw-r--r--Userland/Games/Chess/ChessWidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Games/Chess/ChessWidget.h b/Userland/Games/Chess/ChessWidget.h
index 256e201f9b..251aeed437 100644
--- a/Userland/Games/Chess/ChessWidget.h
+++ b/Userland/Games/Chess/ChessWidget.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2020, the SerenityOS developers.
+ * Copyright (c) 2020-2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -18,7 +18,7 @@ class ChessWidget final : public GUI::Frame {
C_OBJECT(ChessWidget);
public:
- virtual ~ChessWidget() override;
+ virtual ~ChessWidget() override = default;
virtual void paint_event(GUI::PaintEvent&) override;
virtual void mousedown_event(GUI::MouseEvent&) override;