mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:37:46 +00:00
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."
This commit is contained in:
parent
1a59cffb00
commit
5c21f963ff
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2020, Itamar S. <itamar8910@gmail.com>
|
* Copyright (c) 2020, Itamar S. <itamar8910@gmail.com>
|
||||||
|
* Copyright (c) 2022, the SerenityOS developers.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||||
|
* Copyright (c) 2022, the SerenityOS developers.
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -489,7 +490,7 @@ class Instruction {
|
||||||
public:
|
public:
|
||||||
template<typename InstructionStreamType>
|
template<typename InstructionStreamType>
|
||||||
static Instruction from_stream(InstructionStreamType&, bool o32, bool a32);
|
static Instruction from_stream(InstructionStreamType&, bool o32, bool a32);
|
||||||
~Instruction() { }
|
~Instruction() = default;
|
||||||
|
|
||||||
ALWAYS_INLINE MemoryOrRegisterReference& modrm() const { return m_modrm; }
|
ALWAYS_INLINE MemoryOrRegisterReference& modrm() const { return m_modrm; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue