summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/EventLoop.h
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-02-26 09:09:45 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-10 18:04:26 -0800
commitea58b8d9275b16e50d69b585519fbb4f1a850415 (patch)
tree629147d3d309f193923dee1793b54348d86404cd /Userland/Libraries/LibCore/EventLoop.h
parentc6dcb12b000a04a6e2cf840b71fc051078c96256 (diff)
downloadserenity-ea58b8d9275b16e50d69b585519fbb4f1a850415.zip
Libraries: Use default constructors/destructors in LibCore
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/LibCore/EventLoop.h')
-rw-r--r--Userland/Libraries/LibCore/EventLoop.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/EventLoop.h b/Userland/Libraries/LibCore/EventLoop.h
index 294be5bbec..6e625b0d1d 100644
--- a/Userland/Libraries/LibCore/EventLoop.h
+++ b/Userland/Libraries/LibCore/EventLoop.h
@@ -1,6 +1,7 @@
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, kleines Filmröllchen <malu.bertsch@gmail.com>
+ * Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -117,7 +118,7 @@ private:
public:
QueuedEvent(Object& receiver, NonnullOwnPtr<Event>);
QueuedEvent(QueuedEvent&&);
- ~QueuedEvent();
+ ~QueuedEvent() = default;
WeakPtr<Object> receiver;
NonnullOwnPtr<Event> event;