From 1f46381c549b5c865a588a1721361c4d34be5a58 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 14 Jan 2019 15:30:55 +0000 Subject: Tidy repeated call of make_uuid() and don't put urn:uuid: in front of default content version label text as it's a bit confusing. --- src/cpl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cpl.cc') diff --git a/src/cpl.cc b/src/cpl.cc index cc7237ea..726d69b7 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -66,14 +66,14 @@ CPL::CPL (string annotation_text, ContentKind content_kind) /* default _content_title_text to annotation_text */ : _content_title_text (annotation_text) , _content_kind (content_kind) - , _content_version_id ("urn:uuid:" + make_uuid ()) { _metadata.annotation_text = annotation_text; /* default _content_version_id to a random ID and _content_version_label to a random ID and the current time. */ - _content_version_id = "urn:uuid:" + make_uuid(); - _content_version_label_text = _content_version_id + LocalTime().as_string (); + string const uuid = make_uuid(); + _content_version_id = "urn:uuid:" + uuid; + _content_version_label_text = uuid + LocalTime().as_string (); } /** Construct a CPL object from a XML file */ -- cgit v1.2.3