From f1ff48c38b0438c7f93df8ab8c560a00292b083f Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 26 Apr 2020 00:53:50 -0400 Subject: [PATCH] CDamageVulnerability: Remove unnecessary inline specifiers These functions are already marked static, so they're already a candidate for inlining. We can mark them as constexpr though, given how trivial they are. --- Runtime/World/CDamageVulnerability.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/World/CDamageVulnerability.cpp b/Runtime/World/CDamageVulnerability.cpp index 44bc12a25..565dcbf18 100644 --- a/Runtime/World/CDamageVulnerability.cpp +++ b/Runtime/World/CDamageVulnerability.cpp @@ -34,11 +34,11 @@ const CDamageVulnerability CDamageVulnerability::sPassThroughVulnerability( EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EVulnerability::PassThrough, EDeflectType::None); -static inline bool is_not_immune(EVulnerability vuln) { +static constexpr bool is_not_immune(EVulnerability vuln) { return vuln != EVulnerability::Immune && vuln != EVulnerability::DirectImmune; } -static inline bool is_normal_or_weak(EVulnerability vuln) { +static constexpr bool is_normal_or_weak(EVulnerability vuln) { return vuln == EVulnerability::Normal || vuln == EVulnerability::Weak; }