IVGCVSW-4065 Refactor the IPacketBuffer smart pointers
* Added convenience "using" statement for the unique pointers to
IPacketBuffer
* Replaced all the occurrencies in the code
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: Iffec3a425ffbc1ecb23012971563a48139eb32eb
diff --git a/src/profiling/IPacketBuffer.hpp b/src/profiling/IPacketBuffer.hpp
index b4bd615..c61d232 100644
--- a/src/profiling/IPacketBuffer.hpp
+++ b/src/profiling/IPacketBuffer.hpp
@@ -5,6 +5,8 @@
#pragma once
+#include <memory>
+
namespace armnn
{
@@ -35,6 +37,8 @@
virtual unsigned char* GetWritableData() = 0;
};
+using IPacketBufferPtr = std::unique_ptr<IPacketBuffer>;
+
} // namespace profiling
-} // namespace armnn
\ No newline at end of file
+} // namespace armnn