Throw by value, catch by const reference. Even anonymously.

This avoids compiler warnings about catching polymorphic types
by value.

Change-Id: I672bcffe3471fcc0c446bab1e554937ba09208b2
Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com>
diff --git a/src/profiling/CommandThread.cpp b/src/profiling/CommandThread.cpp
index 4cd622c..bd4aa96 100644
--- a/src/profiling/CommandThread.cpp
+++ b/src/profiling/CommandThread.cpp
@@ -37,7 +37,7 @@
                 m_CommandHandlerRegistry.GetFunctor(packet.GetPacketId(), version.GetEncodedValue());
             commandHandlerFunctor->operator()(packet);
         }
-        catch(armnn::TimeoutException)
+        catch(const armnn::TimeoutException&)
         {
             if(m_StopAfterTimeout)
             {
@@ -94,4 +94,4 @@
 
 }//namespace profiling
 
-}//namespace armnn
\ No newline at end of file
+}//namespace armnn