diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-13 15:36:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-08-13 15:36:21 +0000 |
commit | 0b1c369e15af54cf809140b75af99d72edce24ae (patch) | |
tree | c7cd072b03cfd49aab44a1e5bb150c301d155663 /libs | |
parent | c25496008816325bf85ac5f777978f7ce351fb1e (diff) |
engine dialog work, new -m option for menu file selection, new obolean automation line work starting up
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2293 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/insert.cc | 2 | ||||
-rw-r--r-- | libs/pbd/pbd/convert.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/libs/ardour/insert.cc b/libs/ardour/insert.cc index f8650c7ee1..78b53e641c 100644 --- a/libs/ardour/insert.cc +++ b/libs/ardour/insert.cc @@ -166,7 +166,7 @@ PluginInsert::~PluginInsert () void PluginInsert::automation_list_creation_callback (uint32_t which, AutomationList& alist) { - alist.automation_state_changed.connect (sigc::bind (mem_fun (*this, &PluginInsert::auto_state_changed), (which))); + alist.automation_state_changed.connect (sigc::bind (mem_fun (*this, &PluginInsert::auto_state_changed), (which))); } void diff --git a/libs/pbd/pbd/convert.h b/libs/pbd/pbd/convert.h index 00176659cf..458e4aebe9 100644 --- a/libs/pbd/pbd/convert.h +++ b/libs/pbd/pbd/convert.h @@ -22,6 +22,8 @@ #include <string> #include <vector> +#include <sstream> +#include <iostream> namespace PBD { @@ -37,6 +39,14 @@ std::string length2string (const int64_t frames, const double sample_rate); std::vector<std::string> internationalize (const char *, const char **); bool strings_equal_ignore_case (const std::string& a, const std::string& b); +template <class T> std::string +to_string (T t, std::ios_base & (*f)(std::ios_base&)) +{ + std::ostringstream oss; + oss << f << t; + return oss.str(); +} + } //namespace PBD #endif /* __pbd_convert_h__ */ |