From ab27cb344e9d2e1ea18c1c89cda65a02a7513e4b Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 30 Jul 2008 06:29:00 +0000 Subject: QPID-1198 (adapted): Change use of uuid lib not to assume const parameters The Solaris version of uuid.h takes uint8_t* not const uint8_t* git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@680919 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/Uuid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/framing/Uuid.cpp') diff --git a/cpp/src/qpid/framing/Uuid.cpp b/cpp/src/qpid/framing/Uuid.cpp index b58d9fce96..e8d8d517dd 100644 --- a/cpp/src/qpid/framing/Uuid.cpp +++ b/cpp/src/qpid/framing/Uuid.cpp @@ -38,7 +38,7 @@ void Uuid::decode(Buffer& buf) { buf.getRawData(c_array(), size()); } -ostream& operator<<(ostream& out, const Uuid& uuid) { +ostream& operator<<(ostream& out, Uuid uuid) { char unparsed[UNPARSED_SIZE + 1]; uuid_unparse(uuid.data(), unparsed); return out << unparsed; @@ -52,7 +52,7 @@ istream& operator>>(istream& in, Uuid& uuid) { return in; } -std::string Uuid::str() const { +std::string Uuid::str() { std::ostringstream os; os << *this; return os.str(); -- cgit v1.2.1