diff options
| author | Gordon Sim <gsim@apache.org> | 2012-08-28 13:16:59 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2012-08-28 13:16:59 +0000 |
| commit | 93cfe7961b60929aae0718355291885d2e23ecfc (patch) | |
| tree | 66d49528b04a2864ac12f01c632f85472c8e6ccf /cpp/src/qpid/client | |
| parent | 89a01d88c398751c228c0f57eb9520dc3f02abc4 (diff) | |
| download | qpid-python-93cfe7961b60929aae0718355291885d2e23ecfc.tar.gz | |
NO-JIRA: Remove const qualifier from encode buffer (can't encode into if it is const, and impls const cast it anyway)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1378125 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client')
| -rw-r--r-- | cpp/src/qpid/client/TCPConnector.cpp | 4 | ||||
| -rw-r--r-- | cpp/src/qpid/client/TCPConnector.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/client/TCPConnector.cpp b/cpp/src/qpid/client/TCPConnector.cpp index a5c6465bad..a14acb214c 100644 --- a/cpp/src/qpid/client/TCPConnector.cpp +++ b/cpp/src/qpid/client/TCPConnector.cpp @@ -245,9 +245,9 @@ bool TCPConnector::canEncode() } // Called in IO thread. -size_t TCPConnector::encode(const char* buffer, size_t size) +size_t TCPConnector::encode(char* buffer, size_t size) { - framing::Buffer out(const_cast<char*>(buffer), size); + framing::Buffer out(buffer, size); size_t bytesWritten(0); { Mutex::ScopedLock l(lock); diff --git a/cpp/src/qpid/client/TCPConnector.h b/cpp/src/qpid/client/TCPConnector.h index c0bc26028d..5e1a3856e6 100644 --- a/cpp/src/qpid/client/TCPConnector.h +++ b/cpp/src/qpid/client/TCPConnector.h @@ -90,7 +90,7 @@ class TCPConnector : public Connector, public sys::Codec const qpid::sys::SecuritySettings* getSecuritySettings() { return 0; } size_t decode(const char* buffer, size_t size); - size_t encode(const char* buffer, size_t size); + size_t encode(char* buffer, size_t size); bool canEncode(); protected: |
