Add CPL::unset_version_number().
authorCarl Hetherington <cth@carlh.net>
Mon, 18 Jan 2021 12:03:47 +0000 (13:03 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 18 Jan 2021 12:03:47 +0000 (13:03 +0100)
src/cpl.cc
src/cpl.h

index 1775183db0d99f5ea08d6af9fe223e199fccdacf..76f6002bb12661455c5e732c8709fd0822123b89 100644 (file)
@@ -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)
 {
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;
        }