move string_is_affirmative() into libpbd

git-svn-id: svn://localhost/ardour2/branches/3.0@11936 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-12 11:45:40 +00:00
parent 81a76cc0fd
commit d6051c9953
11 changed files with 54 additions and 27 deletions

View file

@ -19,6 +19,9 @@
#include <gtkmm/window.h>
#include "window_proxy.h"
#include "pbd/convert.h"
#include "i18n.h"
using namespace std;
@ -57,7 +60,7 @@ WindowProxyBase::WindowProxyBase (string const & name, XMLNode const * node)
XMLProperty* prop;
if ((prop = (*i)->property (X_("visible"))) != 0) {
_visible = string_is_affirmative (prop->value ());
_visible = PBD::string_is_affirmative (prop->value ());
}
if ((prop = (*i)->property (X_("x-off"))) != 0) {