diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 15:31:39 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-10-02 15:31:39 +0000 |
commit | 03f6001f4a47d7095f148aa193042c9d0656bc56 (patch) | |
tree | bdbc9f2a9a954c190f61e22006629ff8e86cd361 /libs/ardour/route.cc | |
parent | 9bddd37ea2dfab5a5eca6fdf03696e1dbae53e1d (diff) |
replace all instances of prop->value() == "yes" with string_is_affirmative (prop->value()) to avoid XML property SNAFUs
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5720 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index ac30cb4702..5d3fecf724 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -1696,15 +1696,15 @@ Route::_set_state (const XMLNode& node, bool call_base) } if ((prop = node.property (X_("phase-invert"))) != 0) { - set_phase_invert (prop->value()=="yes"?true:false, this); + set_phase_invert (string_is_affirmative (prop->value()), this); } if ((prop = node.property (X_("denormal-protection"))) != 0) { - set_denormal_protection (prop->value()=="yes"?true:false, this); + set_denormal_protection (string_is_affirmative (prop->value()), this); } if ((prop = node.property (X_("muted"))) != 0) { - bool yn = prop->value()=="yes"?true:false; + bool yn = string_is_affirmative (prop->value()); /* force reset of mute status */ @@ -1714,7 +1714,7 @@ Route::_set_state (const XMLNode& node, bool call_base) } if ((prop = node.property (X_("soloed"))) != 0) { - bool yn = prop->value()=="yes"?true:false; + bool yn = string_is_affirmative (prop->value()); /* force reset of solo status */ @@ -1724,19 +1724,19 @@ Route::_set_state (const XMLNode& node, bool call_base) } if ((prop = node.property (X_("mute-affects-pre-fader"))) != 0) { - _mute_affects_pre_fader = (prop->value()=="yes")?true:false; + _mute_affects_pre_fader = string_is_affirmative (prop->value()); } if ((prop = node.property (X_("mute-affects-post-fader"))) != 0) { - _mute_affects_post_fader = (prop->value()=="yes")?true:false; + _mute_affects_post_fader = string_is_affirmative (prop->value()); } if ((prop = node.property (X_("mute-affects-control-outs"))) != 0) { - _mute_affects_control_outs = (prop->value()=="yes")?true:false; + _mute_affects_control_outs = string_is_affirmative (prop->value()); } if ((prop = node.property (X_("mute-affects-main-outs"))) != 0) { - _mute_affects_main_outs = (prop->value()=="yes")?true:false; + _mute_affects_main_outs = string_is_affirmative (prop->value()); } if ((prop = node.property (X_("meter-point"))) != 0) { |