From c99ae89a488f1a3023c99ac303b8c26f1991b4b1 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Fri, 25 May 2012 17:24:52 +0000 Subject: NO-JIRA: fix some defects found by Coverity static analysis scan of C++ code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1342742 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/include/qpid/framing/StructHelper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/include') diff --git a/cpp/include/qpid/framing/StructHelper.h b/cpp/include/qpid/framing/StructHelper.h index 21f9b91fa9..fe2fa64ce7 100644 --- a/cpp/include/qpid/framing/StructHelper.h +++ b/cpp/include/qpid/framing/StructHelper.h @@ -34,7 +34,7 @@ class QPID_COMMON_CLASS_EXTERN StructHelper { public: - template void encode(const T t, std::string& data) { + template void encode(const T& t, std::string& data) { uint32_t size = t.bodySize() + 2/*type*/; data.resize(size); Buffer wbuffer(const_cast(data.data()), size); -- cgit v1.2.1