From 2e7c885590203295782d2e92f52468e88b9b636f Mon Sep 17 00:00:00 2001 From: Matteo Martincigh Date: Mon, 9 Sep 2019 09:23:53 +0100 Subject: [PATCH] IVGCVSW-3400 Add missing virtual destructors * Added missing virtual destructors to recently added profiling interface classes Change-Id: Id2c4b3bb22ef233b26723d3e578477c59018fbda Signed-off-by: Matteo Martincigh --- src/profiling/IBufferWrapper.hpp | 4 +++- src/profiling/IProfilingConnection.hpp | 2 ++ src/profiling/ISendCounterPacket.hpp | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/profiling/IBufferWrapper.hpp b/src/profiling/IBufferWrapper.hpp index 5128521..9c38ab1 100644 --- a/src/profiling/IBufferWrapper.hpp +++ b/src/profiling/IBufferWrapper.hpp @@ -14,6 +14,8 @@ namespace profiling class IBufferWrapper { public: + virtual ~IBufferWrapper() {} + virtual unsigned char* Reserve(unsigned int requestedSize, unsigned int& reservedSize) = 0; virtual void Commit(unsigned int size) = 0; @@ -25,4 +27,4 @@ public: } // namespace profiling -} // namespace armnn \ No newline at end of file +} // namespace armnn diff --git a/src/profiling/IProfilingConnection.hpp b/src/profiling/IProfilingConnection.hpp index c8387f2..160a4fa 100644 --- a/src/profiling/IProfilingConnection.hpp +++ b/src/profiling/IProfilingConnection.hpp @@ -18,6 +18,8 @@ namespace profiling class IProfilingConnection { public: + virtual ~IProfilingConnection() {} + virtual bool IsOpen() = 0; virtual void Close() = 0; diff --git a/src/profiling/ISendCounterPacket.hpp b/src/profiling/ISendCounterPacket.hpp index 7f9e192..5117c5d 100644 --- a/src/profiling/ISendCounterPacket.hpp +++ b/src/profiling/ISendCounterPacket.hpp @@ -18,6 +18,8 @@ class ISendCounterPacket public: using IndexValuePairsVector = std::vector>; + virtual ~ISendCounterPacket() {} + /// Create and write a StreamMetaDataPacket in the buffer virtual void SendStreamMetaDataPacket() = 0; -- 2.7.4