projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2915c4f
)
Add CPL::unset_version_number().
author
Carl Hetherington
<cth@carlh.net>
Mon, 18 Jan 2021 12:03:47 +0000
(13:03 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 18 Jan 2021 12:03:47 +0000
(13:03 +0100)
src/cpl.cc
patch
|
blob
|
history
src/cpl.h
patch
|
blob
|
history
diff --git
a/src/cpl.cc
b/src/cpl.cc
index 1775183db0d99f5ea08d6af9fe223e199fccdacf..76f6002bb12661455c5e732c8709fd0822123b89 100644
(file)
--- a/
src/cpl.cc
+++ b/
src/cpl.cc
@@
-656,6
+656,13
@@
CPL::set_version_number (int v)
}
+void
+CPL::unset_version_number ()
+{
+ _version_number = boost::none;
+}
+
+
void
CPL::set_content_versions (vector<ContentVersion> v)
{
diff --git
a/src/cpl.h
b/src/cpl.h
index 06b59bd89b27dbb42785d9f1c3e4eebd635e3a8f..d96181e5b07bc9817ad373584ae37a24c13db23e 100644
(file)
--- a/
src/cpl.h
+++ b/
src/cpl.h
@@
-201,6
+201,8
@@
public:
void set_version_number (int v);
+ void unset_version_number ();
+
boost::optional<Status> status () const {
return _status;
}