summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-08-31 15:37:03 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:36:58 +1000
commit04a027a031aec982eee0c7aa7edfbabad474bb41 (patch)
treee0fc3579dc20853ae48abf89ab536cc0eed26d41 /libs
parent9ce1d7c3579f1769c4609617bbb7c201fd9919f5 (diff)
Use PBD::string_to<bool> in legacy ARDOUR::Route methods
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/route.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index e136b7b896..0c95161e03 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -877,7 +877,7 @@ Route::add_processor_from_xml_2X (const XMLNode& node, int version)
//A2 uses the "active" flag in the toplevel redirect node, not in the child plugin/IO
if (i != children.end()) {
if ((prop = (*i)->property (X_("active"))) != 0) {
- if ( string_is_affirmative (prop->value()) && (!_session.get_bypass_all_loaded_plugins () || !processor->display_to_user () ) )
+ if ( string_to<bool> (prop->value()) && (!_session.get_bypass_all_loaded_plugins () || !processor->display_to_user () ) )
processor->activate();
else
processor->deactivate();
@@ -2595,13 +2595,13 @@ Route::set_state_2X (const XMLNode& node, int version)
Stripable::set_state (node, version);
if ((prop = node.property (X_("denormal-protection"))) != 0) {
- set_denormal_protection (string_is_affirmative (prop->value()));
+ set_denormal_protection (string_to<bool> (prop->value()));
}
if ((prop = node.property (X_("muted"))) != 0) {
bool first = true;
- bool muted = string_is_affirmative (prop->value());
+ bool muted = string_to<bool> (prop->value());
if (muted) {
@@ -2609,7 +2609,7 @@ Route::set_state_2X (const XMLNode& node, int version)
if ((prop = node.property (X_("mute-affects-pre-fader"))) != 0) {
- if (string_is_affirmative (prop->value())){
+ if (string_to<bool> (prop->value())){
mute_point = mute_point + "PreFader";
first = false;
}
@@ -2617,7 +2617,7 @@ Route::set_state_2X (const XMLNode& node, int version)
if ((prop = node.property (X_("mute-affects-post-fader"))) != 0) {
- if (string_is_affirmative (prop->value())){
+ if (string_to<bool> (prop->value())){
if (!first) {
mute_point = mute_point + ",";
@@ -2630,7 +2630,7 @@ Route::set_state_2X (const XMLNode& node, int version)
if ((prop = node.property (X_("mute-affects-control-outs"))) != 0) {
- if (string_is_affirmative (prop->value())){
+ if (string_to<bool> (prop->value())){
if (!first) {
mute_point = mute_point + ",";
@@ -2643,7 +2643,7 @@ Route::set_state_2X (const XMLNode& node, int version)
if ((prop = node.property (X_("mute-affects-main-outs"))) != 0) {
- if (string_is_affirmative (prop->value())){
+ if (string_to<bool> (prop->value())){
if (!first) {
mute_point = mute_point + ",";
@@ -2685,7 +2685,7 @@ Route::set_state_2X (const XMLNode& node, int version)
set_id (*child);
if ((prop = child->property (X_("active"))) != 0) {
- bool yn = string_is_affirmative (prop->value());
+ bool yn = string_to<bool> (prop->value());
_active = !yn; // force switch
set_active (yn, this);
}