diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-02-26 10:30:24 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-10 18:04:26 -0800 |
commit | cb87d13dd54320ec332e7266bdccb356014d23be (patch) | |
tree | aa7ec2dbafc036089295aa5cce51a3fb5ce29b1d /Userland/Libraries/LibCoredump/Backtrace.h | |
parent | ea58b8d9275b16e50d69b585519fbb4f1a850415 (diff) | |
download | serenity-cb87d13dd54320ec332e7266bdccb356014d23be.zip |
Libraries: Use default constructors/destructors in LibCoredump
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/LibCoredump/Backtrace.h')
-rw-r--r-- | Userland/Libraries/LibCoredump/Backtrace.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCoredump/Backtrace.h b/Userland/Libraries/LibCoredump/Backtrace.h index bb2db6dcdd..d06bad1167 100644 --- a/Userland/Libraries/LibCoredump/Backtrace.h +++ b/Userland/Libraries/LibCoredump/Backtrace.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2020, Linus Groh <linusg@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -38,7 +39,7 @@ public: }; Backtrace(const Reader&, const ELF::Core::ThreadInfo&, Function<void(size_t, size_t)> on_progress = {}); - ~Backtrace(); + ~Backtrace() = default; ELF::Core::ThreadInfo const& thread_info() const { return m_thread_info; } Vector<Entry> const& entries() const { return m_entries; } |