diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-08 02:21:15 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-02-08 02:21:15 +0000 |
commit | b6b0d83965352bec76ede5e69b8ea99da100749c (patch) | |
tree | bb37613639cd45debd64035ec581727099c02e6f /libs/pbd/uuid.cc | |
parent | 25a7bb4825397d9c9f0a4c217aa4b3248b3c868c (diff) |
revert earlier changes to uuid class, but keep boost version in svn for the future
git-svn-id: svn://localhost/ardour2/branches/3.0@8763 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/uuid.cc')
-rw-r--r-- | libs/pbd/uuid.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/pbd/uuid.cc b/libs/pbd/uuid.cc index 1a988b9820..0ffeca23cb 100644 --- a/libs/pbd/uuid.cc +++ b/libs/pbd/uuid.cc @@ -25,13 +25,14 @@ using namespace PBD; UUID& UUID::operator= (std::string const & str) { - boost::uuids::string_generator gen; - *((boost::uuids::uuid*) this) = gen (str); + uuid_parse (str.c_str(), id); return *this; } std::string UUID::to_s () const { - return std::string ((const char*) data, size()); + char buf[37]; + uuid_unparse (id, buf); + return std::string (buf); } |