summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/Uuid.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2008-07-30 06:29:00 +0000
committerAndrew Stitcher <astitcher@apache.org>2008-07-30 06:29:00 +0000
commitab27cb344e9d2e1ea18c1c89cda65a02a7513e4b (patch)
tree1fb429f87c356b1c205537a6b28bef9b488843fa /cpp/src/qpid/framing/Uuid.cpp
parent0a5cb139d56079318a1779ef217408e3fea97a12 (diff)
downloadqpid-python-ab27cb344e9d2e1ea18c1c89cda65a02a7513e4b.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/framing/Uuid.cpp')
-rw-r--r--cpp/src/qpid/framing/Uuid.cpp4
1 files changed, 2 insertions, 2 deletions
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();