diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-01-05 14:01:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-01-05 14:01:00 +0000 |
| commit | 342aad2ddf893aaaafa9a2c9980579d2dc4ec125 (patch) | |
| tree | 85cd4c34316d76679c18ea49c7de33e8066a6a1c /src/object.cc | |
| parent | aa632b458fc2aa5ff1ca2e2702dcf589ae627d7d (diff) | |
Try to rationalise handling of urn:uuid: prefixes.
Diffstat (limited to 'src/object.cc')
| -rw-r--r-- | src/object.cc | 3 |
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:"); } |
