diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 19:23:48 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | 3283bca45475a597686378f232b65d052422c6b8 (patch) | |
tree | fc29cb21214cb70900d020bfdc8783f35b399458 /src/ClashAvoider.cpp | |
parent | 14cd32a043552d39738ae0e84e4ef8ab93783296 (diff) | |
download | ingen-3283bca45475a597686378f232b65d052422c6b8.tar.gz ingen-3283bca45475a597686378f232b65d052422c6b8.tar.bz2 ingen-3283bca45475a597686378f232b65d052422c6b8.zip |
Cleanup: Use faster char overload of find_last_of()
Diffstat (limited to 'src/ClashAvoider.cpp')
-rw-r--r-- | src/ClashAvoider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClashAvoider.cpp b/src/ClashAvoider.cpp index 1c1e4db1..83aefddd 100644 --- a/src/ClashAvoider.cpp +++ b/src/ClashAvoider.cpp @@ -99,7 +99,7 @@ ClashAvoider::map_path(const Raul::Path& in) offset = ++o->second; } else { std::string parent_str = in.parent().base(); - parent_str = parent_str.substr(0, parent_str.find_last_of("/")); + parent_str = parent_str.substr(0, parent_str.find_last_of('/')); if (parent_str.empty()) { parent_str = "/"; } |