diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-03-17 14:11:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-03-20 16:41:02 +0100 |
| commit | 20e3e4c2a7a91e45740987a702f5d4c1ea2f9030 (patch) | |
| tree | dd8d9a08834170980ff34ea288ed0334a8b2d9b0 /src/mono_picture_asset.cc | |
| parent | 870f02f07ee51ee478006260e2c3b683e591b0c9 (diff) | |
Use an enum instead of a bool in PictureAsset::start_write().
Diffstat (limited to 'src/mono_picture_asset.cc')
| -rw-r--r-- | src/mono_picture_asset.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mono_picture_asset.cc b/src/mono_picture_asset.cc index 5aba95d2..cdfcb0df 100644 --- a/src/mono_picture_asset.cc +++ b/src/mono_picture_asset.cc @@ -183,10 +183,10 @@ MonoPictureAsset::equals (shared_ptr<const Asset> other, EqualityOptions opt, No shared_ptr<PictureAssetWriter> -MonoPictureAsset::start_write (boost::filesystem::path file, bool overwrite) +MonoPictureAsset::start_write(boost::filesystem::path file, Behaviour behaviour) { /* Can't use make_shared here as the MonoPictureAssetWriter constructor is private */ - return shared_ptr<MonoPictureAssetWriter>(new MonoPictureAssetWriter(this, file, overwrite)); + return shared_ptr<MonoPictureAssetWriter>(new MonoPictureAssetWriter(this, file, behaviour == Behaviour::OVERWRITE_EXISTING)); } shared_ptr<MonoPictureAssetReader> |
