diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-01 14:30:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-01 14:30:06 +0000 |
commit | 7f417fb44fca536d3eb038bf01919e2557082d13 (patch) | |
tree | 1052fa3a8353a313889a882bd3642325bfbc2474 /gtk2_ardour | |
parent | 3240a93aad831eea5295fbca2387d2210e9e8638 (diff) |
Remove unused ustring version of url_decode(). Rework
the other version to be a bit simpler, avoiding #4800.
git-svn-id: svn://localhost/ardour2/branches/3.0@11771 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index ca19c0a4ef..d2f5fbe5de 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -3132,14 +3132,13 @@ Editor::convert_drop_to_paths ( if ((*i).substr (0,7) == "file://") { - string p = *i; - PBD::url_decode (p); + string const p = PBD::url_decode (*i); // scan forward past three slashes string::size_type slashcnt = 0; string::size_type n = 0; - string::iterator x = p.begin(); + string::const_iterator x = p.begin(); while (slashcnt < 3 && x != p.end()) { if ((*x) == '/') { |