SHA256
1
0
forked from pool/pulseeffects
pulseeffects/01-fix-depricated-boost-filesystem-copy_option.patch
Konstantin Voinov 50670dc92c Accepting request 1176604 from home:kill_it:branches:multimedia:apps
- Switch to _service source tarball
- Update spec
- Add 01-fix-depricated-boost-filesystem-copy_option.patch fixing
  build with current boost

OBS-URL: https://build.opensuse.org/request/show/1176604
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/pulseeffects?expand=0&rev=32
2024-05-23 23:13:38 +00:00

27 lines
1.1 KiB
Diff

diff --git a/src/convolver_ui.cpp b/src/convolver_ui.cpp
index fba3d6bfd..d40f3afff 100644
--- a/src/convolver_ui.cpp
+++ b/src/convolver_ui.cpp
@@ -186,7 +186,7 @@ void ConvolverUi::import_irs_file(const std::string& file_path) {
out_path.replace_extension(".irs");
- boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_option::overwrite_if_exists);
+ boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_options::overwrite_existing);
util::debug(log_tag + "imported irs file to: " + out_path.string());
} else {
diff --git a/src/presets_manager.cpp b/src/presets_manager.cpp
index 6926e3d9d..57c333aaf 100644
--- a/src/presets_manager.cpp
+++ b/src/presets_manager.cpp
@@ -472,7 +472,7 @@ void PresetsManager::import(PresetType preset_type, const std::string& file_path
out_path = user_dir / p.filename();
- boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_option::overwrite_if_exists);
+ boost::filesystem::copy_file(p, out_path, boost::filesystem::copy_options::overwrite_existing);
util::debug(log_tag + "imported preset to: " + out_path.string());
}