diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-16 19:58:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-16 19:58:34 +0000 |
commit | a4d9d09af5853f769e1143c2353806bfb7d89f58 (patch) | |
tree | 05dc35268557395124f130ec8b6d8e32c6e49b7b /libs/pbd/whitespace.cc | |
parent | 0b2f156c5850fb1c60aae25df4b9767bd7f92b89 (diff) |
forward port 2.X changes up to and including rev 6714
git-svn-id: svn://localhost/ardour2/branches/3.0@7635 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/whitespace.cc')
-rw-r--r-- | libs/pbd/whitespace.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/pbd/whitespace.cc b/libs/pbd/whitespace.cc index d73fced321..7fafd07c6f 100644 --- a/libs/pbd/whitespace.cc +++ b/libs/pbd/whitespace.cc @@ -18,6 +18,7 @@ */ #include "pbd/whitespace.h" +#include <glibmm/ustring.h> using namespace std; @@ -77,4 +78,12 @@ strip_whitespace_edges (string& str) } } +void +strip_whitespace_edges (Glib::ustring& str) +{ + string copy (str.raw()); + strip_whitespace_edges (copy); + str = copy; +} + } // namespace PBD |