From 92d4e6e746a64635917677399e72cd59537d3b92 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 23 Apr 2021 11:56:21 +0200 Subject: [PATCH] adt/common: remove const from return type reported by LGTM https://lgtm.com/projects/g/srsLTE/srsLTE/rev/pr-9ae46cae260b6b8137b34b9423bf1477bd6b5c42 --- lib/include/srsran/adt/interval.h | 2 +- lib/include/srsran/common/byte_buffer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/srsran/adt/interval.h b/lib/include/srsran/adt/interval.h index 930e5250e..c20ffe499 100644 --- a/lib/include/srsran/adt/interval.h +++ b/lib/include/srsran/adt/interval.h @@ -39,7 +39,7 @@ public: bool empty() const { return stop_ == start_; } - auto length() -> decltype(std::declval() - std::declval()) const { return stop_ - start_; } + auto length() const -> decltype(std::declval() - std::declval()) { return stop_ - start_; } void set(T start_point, T stop_point) { diff --git a/lib/include/srsran/common/byte_buffer.h b/lib/include/srsran/common/byte_buffer.h index 016ced218..e33bc3a32 100644 --- a/lib/include/srsran/common/byte_buffer.h +++ b/lib/include/srsran/common/byte_buffer.h @@ -155,7 +155,7 @@ public: const uint8_t* data() const { return msg; } uint32_t size() const { return N_bytes; } iterator begin() { return msg; } - const iterator begin() const { return msg; } + const_iterator begin() const { return msg; } iterator end() { return msg + N_bytes; } const_iterator end() const { return msg + N_bytes; }