From c350cdced0a8a2ca17376f58813e6d48d796ac7c Mon Sep 17 00:00:00 2001 From: alexander Date: Thu, 29 Apr 2021 20:36:09 +0100 Subject: MLECO-1868: Code static analyzer warnings fixes Signed-off-by: alexander Change-Id: Ie423e9cad3fabec6ab077ded7236813fe4933dea --- source/use_case/asr/include/Wav2LetterPostprocess.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/use_case/asr/include/Wav2LetterPostprocess.hpp') diff --git a/source/use_case/asr/include/Wav2LetterPostprocess.hpp b/source/use_case/asr/include/Wav2LetterPostprocess.hpp index 69567a3..e16d35b 100644 --- a/source/use_case/asr/include/Wav2LetterPostprocess.hpp +++ b/source/use_case/asr/include/Wav2LetterPostprocess.hpp @@ -72,33 +72,33 @@ namespace asr { * initialised. * @return true if valid, false otherwise. */ - bool _IsInputValid(TfLiteTensor* tensor, - uint32_t axisIdx) const; + bool IsInputValid(TfLiteTensor* tensor, + const uint32_t axisIdx) const; /** * @brief Gets the tensor data element size in bytes based * on the tensor type. * @return Size in bytes, 0 if not supported. */ - uint32_t _GetTensorElementSize(TfLiteTensor* tensor); + static uint32_t GetTensorElementSize(TfLiteTensor* tensor); /** * @brief Erases sections from the data assuming row-wise * arrangement along the context axis. * @return true if successful, false otherwise. */ - bool _EraseSectionsRowWise(uint8_t* ptrData, - uint32_t strideSzBytes, - bool lastIteration); + bool EraseSectionsRowWise(uint8_t* ptrData, + const uint32_t strideSzBytes, + const bool lastIteration); /** * @brief Erases sections from the data assuming col-wise * arrangement along the context axis. * @return true if successful, false otherwise. */ - bool _EraseSectionsColWise(uint8_t* ptrData, - uint32_t strideSzBytes, - bool lastIteration); + static bool EraseSectionsColWise(const uint8_t* ptrData, + const uint32_t strideSzBytes, + const bool lastIteration); }; } /* namespace asr */ -- cgit v1.2.1