diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-02-26 09:09:45 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-10 18:04:26 -0800 |
commit | ea58b8d9275b16e50d69b585519fbb4f1a850415 (patch) | |
tree | 629147d3d309f193923dee1793b54348d86404cd /Userland/Libraries/LibCore/Object.cpp | |
parent | c6dcb12b000a04a6e2cf840b71fc051078c96256 (diff) | |
download | serenity-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/Object.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/Object.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Userland/Libraries/LibCore/Object.cpp b/Userland/Libraries/LibCore/Object.cpp index 66c47b0bf5..62f9d54939 100644 --- a/Userland/Libraries/LibCore/Object.cpp +++ b/Userland/Libraries/LibCore/Object.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -270,10 +271,6 @@ ObjectClassRegistration::ObjectClassRegistration(StringView class_name, Function object_classes().set(class_name, this); } -ObjectClassRegistration::~ObjectClassRegistration() -{ -} - bool ObjectClassRegistration::is_derived_from(const ObjectClassRegistration& base_class) const { if (&base_class == this) |