diff --git a/src/C4HudBars.cpp b/src/C4HudBars.cpp index 481f7c0b..ff5d4cd6 100644 --- a/src/C4HudBars.cpp +++ b/src/C4HudBars.cpp @@ -175,21 +175,6 @@ C4HudBarDef::C4HudBarDef(const std::string_view name, const std::string_view gfx gfx{gfx}, facet{std::move(facet)}, index{index} {} -bool C4HudBarDef::operator==(const C4HudBarDef &rhs) const noexcept -{ - return - name == rhs.name && - physical == rhs.physical && - hide == rhs.hide && - gfx == rhs.gfx && - facet == rhs.facet && - index == rhs.index && - advance == rhs.advance && - value == rhs.value && - max == rhs.max && - visible == rhs.visible; -} - C4HudBarDef::Hide C4HudBarDef::DefaultHide(const C4HudBarDef::Physical physical) noexcept { switch (physical) diff --git a/src/C4HudBars.h b/src/C4HudBars.h index e8a48a9b..9d3cf025 100644 --- a/src/C4HudBars.h +++ b/src/C4HudBars.h @@ -76,7 +76,7 @@ class C4HudBarDef C4HudBarDef() noexcept = default; C4HudBarDef(std::string_view name, std::string_view file, std::shared_ptr gfx, std::uint32_t index, Physical physical = Physical::None); - bool operator==(const C4HudBarDef &rhs) const noexcept; + constexpr bool operator==(const C4HudBarDef &rhs) const noexcept = default; static Hide DefaultHide(Physical physical) noexcept; static std::int32_t DefaultIndex(Physical physical) noexcept;