From 3102861ee3619ff5461cf60c2cce34fea530be57 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Fri, 28 May 2021 17:26:50 +0200 Subject: [PATCH] rlc_am_lte: make func param const& --- lib/include/srsran/upper/rlc_am_lte.h | 2 +- lib/src/upper/rlc_am_lte.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/include/srsran/upper/rlc_am_lte.h b/lib/include/srsran/upper/rlc_am_lte.h index a18f2aae0..d5afc0aa4 100644 --- a/lib/include/srsran/upper/rlc_am_lte.h +++ b/lib/include/srsran/upper/rlc_am_lte.h @@ -392,7 +392,7 @@ private: void debug_state(); - int required_buffer_size(rlc_amd_retx_t retx); + int required_buffer_size(const rlc_amd_retx_t& retx); void retransmit_pdu(uint32_t sn); // Helpers diff --git a/lib/src/upper/rlc_am_lte.cc b/lib/src/upper/rlc_am_lte.cc index 4e74c3577..a17b0803b 100644 --- a/lib/src/upper/rlc_am_lte.cc +++ b/lib/src/upper/rlc_am_lte.cc @@ -1316,7 +1316,7 @@ void rlc_am_lte::rlc_am_lte_tx::debug_state() logger.debug("%s vt_a = %d, vt_ms = %d, vt_s = %d, poll_sn = %d", RB_NAME, vt_a, vt_ms, vt_s, poll_sn); } -int rlc_am_lte::rlc_am_lte_tx::required_buffer_size(rlc_amd_retx_t retx) +int rlc_am_lte::rlc_am_lte_tx::required_buffer_size(const rlc_amd_retx_t& retx) { if (!retx.is_segment) { if (tx_window.has_sn(retx.sn)) {