summaryrefslogtreecommitdiffstats
path: root/src/ClashAvoider.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:23:48 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit3283bca45475a597686378f232b65d052422c6b8 (patch)
treefc29cb21214cb70900d020bfdc8783f35b399458 /src/ClashAvoider.cpp
parent14cd32a043552d39738ae0e84e4ef8ab93783296 (diff)
downloadingen-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.cpp2
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 = "/";
}