From 8313282cda10bbdc50d376b9ec59ae99652f9417 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 2 Jul 2022 21:04:09 +0700 Subject: [PATCH] Use char version of find_last_of when possible. --- src/test/lp/lp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/lp/lp.cpp b/src/test/lp/lp.cpp index d7329309c4e..bc67ce1c6a5 100644 --- a/src/test/lp/lp.cpp +++ b/src/test/lp/lp.cpp @@ -1885,7 +1885,7 @@ void test_out_dir(std::string out_dir) { void find_dir_and_file_name(std::string a, std::string & dir, std::string& fn) { // todo: make it system independent - size_t last_slash_pos = a.find_last_of("/"); + size_t last_slash_pos = a.find_last_of('/'); if (last_slash_pos >= a.size()) { std::cout << "cannot find file name in " << a << std::endl; throw;