summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SessionImpl.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2012-03-05 23:56:03 +0000
committerAndrew Stitcher <astitcher@apache.org>2012-03-05 23:56:03 +0000
commit75f717f8347511dedc15dce5a3b78651838561b2 (patch)
treebecf6e95fb163c85acf1a15a55a68019fe8fae7b /cpp/src/qpid/client/SessionImpl.cpp
parent659bfe91cefe4aa64fe72c517653c3f318f5ce57 (diff)
downloadqpid-python-75f717f8347511dedc15dce5a3b78651838561b2.tar.gz
QPID-3883: Using application headers in messages causes a very large slowdown
Don't return copy of header return const reference - avoid unnecessary copying git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1297292 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.cpp')
-rw-r--r--cpp/src/qpid/client/SessionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp
index 9ac5323a53..3f3ad617f4 100644
--- a/cpp/src/qpid/client/SessionImpl.cpp
+++ b/cpp/src/qpid/client/SessionImpl.cpp
@@ -324,7 +324,7 @@ struct MethodContentAdaptor : MethodContent
MethodContentAdaptor(const FrameSet& f) : header(*f.getHeaders()), content(f.getContent()) {}
- AMQHeaderBody getHeader() const
+ const AMQHeaderBody& getHeader() const
{
return header;
}