mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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
This commit is contained in:
parent
3240a93aad
commit
7f417fb44f
4 changed files with 16 additions and 90 deletions
|
|
@ -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) == '/') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue