summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorMichael Fisher <mfisher31@gmail.com>2013-07-19 17:40:16 -0500
committerMichael Fisher <mfisher31@gmail.com>2013-07-29 14:43:12 -0500
commit6fd7ec3fc94b517df184bfe1be11fb16580a280b (patch)
tree23415317691729e7cc1d5eb4e8f07c9017a0a74e /libs
parentcdc9d95e925568f0b7808b3ca1f4036fbc66bcdd (diff)
Return an empty string instead of a bool
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/audio_unit.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/ardour/audio_unit.cc b/libs/ardour/audio_unit.cc
index 20a55e49f9..e43033eb67 100644
--- a/libs/ardour/audio_unit.cc
+++ b/libs/ardour/audio_unit.cc
@@ -1824,7 +1824,6 @@ AUPlugin::do_save_preset (string preset_name)
CFPropertyListRef propertyList;
vector<Glib::ustring> v;
Glib::ustring user_preset_path;
- bool ret = true;
std::string m = maker();
std::string n = name();
@@ -1843,12 +1842,12 @@ AUPlugin::do_save_preset (string preset_name)
if (g_mkdir_with_parents (user_preset_path.c_str(), 0775) < 0) {
error << string_compose (_("Cannot create user plugin presets folder (%1)"), user_preset_path) << endmsg;
- return false;
+ return string();
}
DEBUG_TRACE (DEBUG::AudioUnits, "get current preset\n");
if (unit->GetAUPreset (propertyList) != noErr) {
- return false;
+ return string();
}
// add the actual preset name */
@@ -1863,7 +1862,7 @@ AUPlugin::do_save_preset (string preset_name)
if (save_property_list (propertyList, user_preset_path)) {
error << string_compose (_("Saving plugin state to %1 failed"), user_preset_path) << endmsg;
- ret = false;
+ return string();
}
CFRelease(propertyList);