From 76c50d81a5ac188a011c18bcf4afd71e35d17976 Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Thu, 21 Nov 2019 12:10:42 +0000 Subject: Remove const type qualifiers with no effect Signed-off-by: Matteo Martincigh Change-Id: I3ddd98864eef41c0548ab907a48b025b9154a5a8 --- src/profiling/IPacketBuffer.hpp | 2 +- src/profiling/Packet.hpp | 14 +++++++------- src/profiling/PacketBuffer.cpp | 2 +- src/profiling/PacketBuffer.hpp | 4 ++-- src/profiling/test/SendCounterPacketTests.hpp | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/profiling/IPacketBuffer.hpp b/src/profiling/IPacketBuffer.hpp index c61d2327f4..1a97ca741c 100644 --- a/src/profiling/IPacketBuffer.hpp +++ b/src/profiling/IPacketBuffer.hpp @@ -18,7 +18,7 @@ class IReadOnlyPacketBuffer // interface used by the read thread public: virtual ~IReadOnlyPacketBuffer() {} - virtual const unsigned char* const GetReadableData() const = 0; + virtual const unsigned char* GetReadableData() const = 0; virtual unsigned int GetSize() const = 0; diff --git a/src/profiling/Packet.hpp b/src/profiling/Packet.hpp index ff6de69f53..c1f2796804 100644 --- a/src/profiling/Packet.hpp +++ b/src/profiling/Packet.hpp @@ -66,13 +66,13 @@ public: Packet& operator=(const Packet&) = delete; Packet& operator=(Packet&&) = default; - uint32_t GetHeader() const { return m_Header; } - uint32_t GetPacketFamily() const { return m_PacketFamily; } - uint32_t GetPacketId() const { return m_PacketId; } - uint32_t GetPacketClass() const { return m_PacketId >> 3; } - uint32_t GetPacketType() const { return m_PacketId & 7; } - uint32_t GetLength() const { return m_Length; } - const unsigned char* const GetData() const { return m_Data.get(); } + uint32_t GetHeader() const { return m_Header; } + uint32_t GetPacketFamily() const { return m_PacketFamily; } + uint32_t GetPacketId() const { return m_PacketId; } + uint32_t GetPacketClass() const { return m_PacketId >> 3; } + uint32_t GetPacketType() const { return m_PacketId & 7; } + uint32_t GetLength() const { return m_Length; } + const unsigned char* GetData() const { return m_Data.get(); } bool IsEmpty() { return m_Header == 0 && m_Length == 0; } diff --git a/src/profiling/PacketBuffer.cpp b/src/profiling/PacketBuffer.cpp index 88133d7674..886561ae75 100644 --- a/src/profiling/PacketBuffer.cpp +++ b/src/profiling/PacketBuffer.cpp @@ -20,7 +20,7 @@ PacketBuffer::PacketBuffer(unsigned int maxSize) m_Data = std::make_unique(m_MaxSize); } -const unsigned char* const PacketBuffer::GetReadableData() const +const unsigned char* PacketBuffer::GetReadableData() const { return m_Data.get(); } diff --git a/src/profiling/PacketBuffer.hpp b/src/profiling/PacketBuffer.hpp index a3d95d4108..f03b301697 100644 --- a/src/profiling/PacketBuffer.hpp +++ b/src/profiling/PacketBuffer.hpp @@ -22,7 +22,7 @@ public: ~PacketBuffer() {} - const unsigned char* const GetReadableData() const override; + const unsigned char* GetReadableData() const override; unsigned int GetSize() const override; @@ -42,4 +42,4 @@ private: } // namespace profiling -} // namespace armnn \ No newline at end of file +} // namespace armnn diff --git a/src/profiling/test/SendCounterPacketTests.hpp b/src/profiling/test/SendCounterPacketTests.hpp index d70239ef1a..cd41418e2c 100644 --- a/src/profiling/test/SendCounterPacketTests.hpp +++ b/src/profiling/test/SendCounterPacketTests.hpp @@ -118,7 +118,7 @@ public: ~MockPacketBuffer() {} - const unsigned char* const GetReadableData() const override { return m_Data.get(); } + const unsigned char* GetReadableData() const override { return m_Data.get(); } unsigned int GetSize() const override { return m_Size; } -- cgit v1.2.1