summaryrefslogtreecommitdiffhomepage
path: root/include/ocl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-10 17:35:21 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-10 17:36:09 +0100
commit9eb0dfbff793a0def8c5da914e8386b860db99e9 (patch)
tree08b4480f1ed32aa54c57bace8f18035c996a8142 /include/ocl
parent4990c01325e4b8871dc37a9290340e699752da74 (diff)
chore: fix redundant usage of `const` in `constexpr`.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl')
-rw-r--r--include/ocl/fix/parser.hpp10
1 files changed, 5 insertions, 5 deletions
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;