diff options
author | Lenny Maiorani <lenny@serenityos.org> | 2022-03-04 14:08:53 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-13 22:34:38 +0100 |
commit | 5c21f963ff7a11ec160707d1a6f6831af38a3af0 (patch) | |
tree | 1e6dceee78443bc1ca5f9fd4604046a9c944340d /Userland/Libraries/LibX86 | |
parent | 1a59cffb003c678ed2c6042a653104b3899e97c4 (diff) | |
download | serenity-5c21f963ff7a11ec160707d1a6f6831af38a3af0.zip |
Libraries: Use default constructors/destructors in LibX86
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/LibX86')
-rw-r--r-- | Userland/Libraries/LibX86/Instruction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibX86/Instruction.h b/Userland/Libraries/LibX86/Instruction.h index 1fe247e486..f9b920af58 100644 --- a/Userland/Libraries/LibX86/Instruction.h +++ b/Userland/Libraries/LibX86/Instruction.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ @@ -489,7 +490,7 @@ class Instruction { public: template<typename InstructionStreamType> static Instruction from_stream(InstructionStreamType&, bool o32, bool a32); - ~Instruction() { } + ~Instruction() = default; ALWAYS_INLINE MemoryOrRegisterReference& modrm() const { return m_modrm; } |