diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 12:30:32 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-07-11 12:30:32 -0400 |
commit | 36a55b8674f0c3c2d06a9654aef0d9d5ab42e8aa (patch) | |
tree | 918fbf3c52eda40bcd5e3939cb7957057077070a /libs/pbd/uuid.cc | |
parent | f83b435c83b27fc7c6baf9be9305b1aa72095093 (diff) |
Use boost::uuid instead of libuuid
Diffstat (limited to 'libs/pbd/uuid.cc')
-rw-r--r-- | libs/pbd/uuid.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/pbd/uuid.cc b/libs/pbd/uuid.cc index 0ffeca23cb..1a988b9820 100644 --- a/libs/pbd/uuid.cc +++ b/libs/pbd/uuid.cc @@ -25,14 +25,13 @@ using namespace PBD; UUID& UUID::operator= (std::string const & str) { - uuid_parse (str.c_str(), id); + boost::uuids::string_generator gen; + *((boost::uuids::uuid*) this) = gen (str); return *this; } std::string UUID::to_s () const { - char buf[37]; - uuid_unparse (id, buf); - return std::string (buf); + return std::string ((const char*) data, size()); } |