diff options
| author | Gordon Sim <gsim@apache.org> | 2008-10-24 12:39:10 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-10-24 12:39:10 +0000 |
| commit | 38c31043f2dd69abba0b3d05e307a4b6d85ffd52 (patch) | |
| tree | f415b6fdcafd377d8e62d72fddd706a5270e4019 /cpp/src/qpid/framing | |
| parent | 2effbc58544688cfeabc4d7d6dcbd59805233de0 (diff) | |
| download | qpid-python-38c31043f2dd69abba0b3d05e307a4b6d85ffd52.tar.gz | |
removed qualifiers from return values (cause problems on newer compilers)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707616 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing')
| -rw-r--r-- | cpp/src/qpid/framing/Endian.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/framing/Endian.h | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/framing/FieldValue.h | 6 |
3 files changed, 3 insertions, 7 deletions
diff --git a/cpp/src/qpid/framing/Endian.cpp b/cpp/src/qpid/framing/Endian.cpp index a2d4566e5e..1948579b88 100644 --- a/cpp/src/qpid/framing/Endian.cpp +++ b/cpp/src/qpid/framing/Endian.cpp @@ -35,7 +35,7 @@ bool Endian::testBigEndian() return a == b; } -uint8_t* const Endian::convertIfRequired(uint8_t* const octets, int width) +uint8_t* Endian::convertIfRequired(uint8_t* const octets, int width) { if (instance.littleEndian) { for (int i = 0; i < (width/2); i++) { diff --git a/cpp/src/qpid/framing/Endian.h b/cpp/src/qpid/framing/Endian.h index 14d3f9e66d..077d5a3e9b 100644 --- a/cpp/src/qpid/framing/Endian.h +++ b/cpp/src/qpid/framing/Endian.h @@ -34,7 +34,7 @@ namespace framing { class Endian { public: - static uint8_t* const convertIfRequired(uint8_t* const octets, int width); + static uint8_t* convertIfRequired(uint8_t* const octets, int width); private: const bool littleEndian; Endian(); diff --git a/cpp/src/qpid/framing/FieldValue.h b/cpp/src/qpid/framing/FieldValue.h index 18c45f3ff8..68081c5674 100644 --- a/cpp/src/qpid/framing/FieldValue.h +++ b/cpp/src/qpid/framing/FieldValue.h @@ -162,11 +162,7 @@ class FixedWidthValue : public FieldValue::Data { v |= octets[width-1]; return v; } - void copyInto(uint8_t* const data) const - { - for (uint i = 0; i < width; ++i) data[i] = octets[i]; - } - uint8_t* const rawOctets() { return octets; } + uint8_t* rawOctets() { return octets; } void print(std::ostream& o) const { o << "F" << width << ":"; }; }; |
