mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-12 22:53:27 +00:00
Removes redundant NtHeaderVariant declaration
Moves the `NtHeaderVariant` definition outside the unnamed namespace, to avoid repetition and improve code consistency. This change is part of the ongoing work on feature/hide_pe_defs.
This commit is contained in:
@@ -176,11 +176,9 @@ namespace
|
||||
std::uint32_t characteristics;
|
||||
};
|
||||
// ReSharper restore CppDeclaratorNeverUsed
|
||||
}
|
||||
using NtHeaderVariant = std::variant<ImageNtHeaders<NtArchitecture::x64_bit>, ImageNtHeaders<NtArchitecture::x32_bit>>;
|
||||
|
||||
namespace
|
||||
{
|
||||
using NtHeaderVariant = std::variant<ImageNtHeaders<NtArchitecture::x64_bit>, ImageNtHeaders<NtArchitecture::x32_bit>>;
|
||||
|
||||
[[nodiscard]]
|
||||
std::optional<NtHeaderVariant> get_nt_header_from_file(std::fstream& file, const DosHeader& dos_header)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user