From aefcce1c99598cc8c1748940a01e2d8aa55caf85 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 6 Oct 2009 22:07:10 +0000 Subject: ogg/flac support bits and pieces; fix up MIDI note dragging and front-edge trims; BROKEN IN PERCUSSIVE MODE FOR NOW git-svn-id: svn://localhost/ardour2/branches/3.0@5745 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/utils.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'libs/ardour/utils.cc') diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index c8e6b1145f..1ecaba55e5 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -517,16 +517,7 @@ string_is_affirmative (const std::string& str) { /* to be used only with XML data - not intended to handle user input */ - if (str == "1" || str == "y" || str == "Y") { - return true; - } else { - std::string str_uc; - std::transform(str.begin(), str.end(), str_uc.begin(), ::toupper); - if (str_uc == "YES") { - return true; - } - } - return false; + return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length())); } extern "C" { -- cgit v1.2.3