From 373e2c041337602d600f594757c03ab0c6a740c5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 7 Feb 2011 18:19:24 +0000 Subject: switch to Boost UUID's and away from libuuid git-svn-id: svn://localhost/ardour2/branches/3.0@8748 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/uuid.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libs/pbd/uuid.cc') 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()); } -- cgit v1.2.3