From 6ae7684ba7e60adab9ea79fc8dc6c05630318a8b Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 22 Jul 2024 12:59:54 +0200 Subject: [PATCH] Fix const correctness --- src/core/system_parameters/osnma_helper.cc | 2 +- src/core/system_parameters/osnma_helper.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/system_parameters/osnma_helper.cc b/src/core/system_parameters/osnma_helper.cc index 6a7876f02..f8650ed3f 100644 --- a/src/core/system_parameters/osnma_helper.cc +++ b/src/core/system_parameters/osnma_helper.cc @@ -74,7 +74,7 @@ std::vector Osnma_Helper::bytes(const std::string& binaryString) const } -std::string Osnma_Helper::verification_status_str(const int& status) const +std::string Osnma_Helper::verification_status_str(int status) const { switch (status) { diff --git a/src/core/system_parameters/osnma_helper.h b/src/core/system_parameters/osnma_helper.h index 761306efc..686ef5e99 100644 --- a/src/core/system_parameters/osnma_helper.h +++ b/src/core/system_parameters/osnma_helper.h @@ -29,7 +29,7 @@ public: uint32_t compute_gst(uint32_t WN, uint32_t TOW) const; std::vector gst_to_uint8(uint32_t GST) const; std::vector bytes(const std::string& binaryString) const; - std::string verification_status_str(const int& status) const; + std::string verification_status_str(int status) const; std::string convert_to_hex_string(const std::vector& vector) const ; std::vector convert_from_hex_string(const std::string& hex_string) const; // TODO remove similar function in gnss_crypto };