From 9eb0dfbff793a0def8c5da914e8386b860db99e9 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 10 Dec 2025 17:35:21 +0100 Subject: chore: fix redundant usage of `const` in `constexpr`. Signed-off-by: Amlal El Mahrouss --- include/ocl/fix/parser.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/ocl/fix/parser.hpp b/include/ocl/fix/parser.hpp index 985fda8..3074cf7 100644 --- a/include/ocl/fix/parser.hpp +++ b/include/ocl/fix/parser.hpp @@ -19,6 +19,7 @@ namespace ocl::fix /// @brief Buffer+Length structure using range_ptr_type = range*; + using range_type = range; using tag_type = std::string; using value_type = std::string; @@ -87,7 +88,7 @@ namespace ocl::fix bool is_valid() { - constexpr auto magic_tag = "8"; + constexpr auto magic_tag = "8"; return this->operator[](magic_tag).empty() == false; } @@ -101,10 +102,9 @@ namespace ocl::fix class visitor final { public: - /// AMLALE: Yeah... - static constexpr const int soh = '\x01'; - static constexpr const char eq = '='; - static constexpr unsigned base = 10U; + static constexpr int soh = '\x01'; + static constexpr char eq = '='; + static constexpr unsigned base = 10U; explicit visitor() = default; ~visitor() = default; -- cgit v1.2.3