mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
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."
This commit is contained in:
parent
983716cbeb
commit
8f20c3334b
Notes:
sideshowbarker
2024-07-17 17:33:41 +09:00
Author: https://github.com/ldm5180
Commit: 8f20c3334b
Pull-request: https://github.com/SerenityOS/serenity/pull/12994
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
|
* Copyright (c) 2021, Gunnar Beutner <gunnar@beutner.name>
|
||||||
|
* Copyright (c) 2022, the SerenityOS developers.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -18,7 +19,7 @@ struct DlErrorMessage {
|
||||||
// The virtual destructor is required because we're passing this
|
// The virtual destructor is required because we're passing this
|
||||||
// struct to the dynamic loader - whose operator delete differs
|
// struct to the dynamic loader - whose operator delete differs
|
||||||
// from the one in libc.so
|
// from the one in libc.so
|
||||||
virtual ~DlErrorMessage() { }
|
virtual ~DlErrorMessage() = default;
|
||||||
|
|
||||||
String text;
|
String text;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue