From 342aad2ddf893aaaafa9a2c9980579d2dc4ec125 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 5 Jan 2016 14:01:00 +0000 Subject: Try to rationalise handling of urn:uuid: prefixes. --- src/object.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/object.cc') diff --git a/src/object.cc b/src/object.cc index 315e501a..f8107218 100644 --- a/src/object.cc +++ b/src/object.cc @@ -22,6 +22,7 @@ */ #include "object.h" +#include "dcp_assert.h" #include "util.h" using std::string; @@ -40,5 +41,5 @@ Object::Object () Object::Object (string id) : _id (id) { - + DCP_ASSERT (_id.substr(0, 9) != "urn:uuid:"); } -- cgit v1.2.3