summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@serenityos.org>2022-02-26 10:33:23 -0700
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-03-10 18:04:26 -0800
commit8f20c3334b0fb36d099f2d7c60190e55956ace47 (patch)
tree09127d61d935f6ab8099a15ef8abc3ede0a69cc1
parent983716cbeb6c7e7b586cb25326fbb878473b5136 (diff)
downloadserenity-8f20c3334b0fb36d099f2d7c60190e55956ace47.zip
Libraries: Use default constructors/destructors in LibDl
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."
-rw-r--r--Userland/Libraries/LibDl/dlfcn_integration.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDl/dlfcn_integration.h b/Userland/Libraries/LibDl/dlfcn_integration.h
index 19a8251ae2..aa4642d4f3 100644
--- a/Userland/Libraries/LibDl/dlfcn_integration.h
+++ b/Userland/Libraries/LibDl/dlfcn_integration.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
+ * Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -18,7 +19,7 @@ struct DlErrorMessage {
// The virtual destructor is required because we're passing this
// struct to the dynamic loader - whose operator delete differs
// from the one in libc.so
- virtual ~DlErrorMessage() { }
+ virtual ~DlErrorMessage() = default;
String text;
};