From e09fc820968ee4de20df60e371088582a710bad0 Mon Sep 17 00:00:00 2001 From: Finn Williams Date: Wed, 29 Apr 2020 13:17:30 +0100 Subject: IVGCVSW-4730 Remove the duplication of PIPE_MAGIC in the code base Change-Id: I41c6e917b29eee33360758b6c5afe5dadba89093 Signed-off-by: Finn Williams --- src/profiling/FileOnlyProfilingConnection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/profiling/FileOnlyProfilingConnection.cpp') diff --git a/src/profiling/FileOnlyProfilingConnection.cpp b/src/profiling/FileOnlyProfilingConnection.cpp index 5947d2c081..1d4e23b7aa 100644 --- a/src/profiling/FileOnlyProfilingConnection.cpp +++ b/src/profiling/FileOnlyProfilingConnection.cpp @@ -7,6 +7,7 @@ #include "PacketVersionResolver.hpp" #include +#include #include #include @@ -59,11 +60,11 @@ bool FileOnlyProfilingConnection::WaitForStreamMeta(const unsigned char* buffer, } // Before we interpret the length we need to read the pipe_magic word to determine endianness. - if (ToUint32(buffer + 8, TargetEndianness::BeWire) == PIPE_MAGIC) + if (ToUint32(buffer + 8, TargetEndianness::BeWire) == armnnProfiling::PIPE_MAGIC) { m_Endianness = TargetEndianness::BeWire; } - else if (ToUint32(buffer + 8, TargetEndianness::LeWire) == PIPE_MAGIC) + else if (ToUint32(buffer + 8, TargetEndianness::LeWire) == armnnProfiling::PIPE_MAGIC) { m_Endianness = TargetEndianness::LeWire; } -- cgit v1.2.1