summaryrefslogtreecommitdiff
path: root/src/picture_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-17 14:11:34 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-20 16:41:02 +0100
commit20e3e4c2a7a91e45740987a702f5d4c1ea2f9030 (patch)
treedd8d9a08834170980ff34ea288ed0334a8b2d9b0 /src/picture_asset.h
parent870f02f07ee51ee478006260e2c3b683e591b0c9 (diff)
Use an enum instead of a bool in PictureAsset::start_write().
Diffstat (limited to 'src/picture_asset.h')
-rw-r--r--src/picture_asset.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/picture_asset.h b/src/picture_asset.h
index 011dea87..236eca22 100644
--- a/src/picture_asset.h
+++ b/src/picture_asset.h
@@ -73,9 +73,14 @@ public:
/** Create a new PictureAsset with a given edit rate and standard */
explicit PictureAsset (Fraction edit_rate, Standard standard);
+ enum class Behaviour {
+ OVERWRITE_EXISTING,
+ MAKE_NEW
+ };
+
virtual std::shared_ptr<PictureAssetWriter> start_write (
boost::filesystem::path file,
- bool overwrite
+ Behaviour behaviour
) = 0;
Size size () const {