From d570be3f0e5ea69ddff8cc4060fa437c3e29f163 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 1 Jan 2022 11:12:51 +0000 Subject: [PATCH] Prefer accessor methods, if available. --- M6502/HarteTest_6502/array_t.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/M6502/HarteTest_6502/array_t.h b/M6502/HarteTest_6502/array_t.h index 036d26e..eb43223 100644 --- a/M6502/HarteTest_6502/array_t.h +++ b/M6502/HarteTest_6502/array_t.h @@ -12,9 +12,9 @@ protected: public: array_t(simdjson::dom::array input) noexcept; - [[nodiscard]] auto begin() const noexcept { return m_raw.begin(); } - [[nodiscard]] auto end() const noexcept { return m_raw.end(); } - [[nodiscard]] auto size() const noexcept { return m_raw.size(); } + [[nodiscard]] auto begin() const noexcept { return raw().begin(); } + [[nodiscard]] auto end() const noexcept { return raw().end(); } + [[nodiscard]] auto size() const noexcept { return raw().size(); } [[nodiscard]] auto at(size_t idx) const noexcept { return raw().at(idx); } [[nodiscard]] auto operator[](size_t idx) const noexcept { return at(idx); }