diff options
| author | Kenneth Anthony Giusti <kgiusti@apache.org> | 2012-05-25 17:24:52 +0000 |
|---|---|---|
| committer | Kenneth Anthony Giusti <kgiusti@apache.org> | 2012-05-25 17:24:52 +0000 |
| commit | 8d220fc5419fc5632b4da3cc146e38d191c52f85 (patch) | |
| tree | 6490370a3c70aa2160dd0f24297d5f3376e022c2 /qpid/cpp/include | |
| parent | c2e4ca664d87709905f6ac5535ff8d06a9ead3b1 (diff) | |
| download | qpid-python-8d220fc5419fc5632b4da3cc146e38d191c52f85.tar.gz | |
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@1342742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/framing/StructHelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/include/qpid/framing/StructHelper.h b/qpid/cpp/include/qpid/framing/StructHelper.h index 21f9b91fa9..fe2fa64ce7 100644 --- a/qpid/cpp/include/qpid/framing/StructHelper.h +++ b/qpid/cpp/include/qpid/framing/StructHelper.h @@ -34,7 +34,7 @@ class QPID_COMMON_CLASS_EXTERN StructHelper { public: - template <class T> void encode(const T t, std::string& data) { + template <class T> void encode(const T& t, std::string& data) { uint32_t size = t.bodySize() + 2/*type*/; data.resize(size); Buffer wbuffer(const_cast<char*>(data.data()), size); |
