summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Menubar.cpp
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-02-26 10:50:04 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-12 14:44:43 -0800
commitfe3b846ac825d8d91923cb1407dcecf66f29513e (patch)
tree86f3e8976bb1a57c9b2818b7a71b228cc708359f /Userland/Libraries/LibGUI/Menubar.cpp
parentb801ddf73d605dd80b5033c3eae3125ec2ffc4bb (diff)
downloadserenity-fe3b846ac825d8d91923cb1407dcecf66f29513e.zip
Libraries: Use default constructors/destructors in LibGUI
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/Libraries/LibGUI/Menubar.cpp')
-rw-r--r--Userland/Libraries/LibGUI/Menubar.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/Userland/Libraries/LibGUI/Menubar.cpp b/Userland/Libraries/LibGUI/Menubar.cpp
index 69fdb27f13..587dd229c8 100644
--- a/Userland/Libraries/LibGUI/Menubar.cpp
+++ b/Userland/Libraries/LibGUI/Menubar.cpp
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
+ * Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -9,14 +10,6 @@
namespace GUI {
-Menubar::Menubar()
-{
-}
-
-Menubar::~Menubar()
-{
-}
-
ErrorOr<NonnullRefPtr<Menu>> Menubar::try_add_menu(Badge<Window>, String name)
{
auto menu = TRY(try_add<Menu>(move(name)));