summaryrefslogtreecommitdiff
path: root/src/object.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-05 14:01:00 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-05 14:01:00 +0000
commit342aad2ddf893aaaafa9a2c9980579d2dc4ec125 (patch)
tree85cd4c34316d76679c18ea49c7de33e8066a6a1c /src/object.cc
parentaa632b458fc2aa5ff1ca2e2702dcf589ae627d7d (diff)
Try to rationalise handling of urn:uuid: prefixes.
Diffstat (limited to 'src/object.cc')
-rw-r--r--src/object.cc3
1 files changed, 2 insertions, 1 deletions
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:");
}