Replace find(x) != npos with contains(x) - Core

This commit is contained in:
Dr. Dystopia
2025-04-12 08:11:04 +02:00
parent e235cebb01
commit 9ae9c12938
13 changed files with 38 additions and 44 deletions

View File

@@ -60,7 +60,7 @@ FileDataLoaderHostFS::MakeAbsoluteFromRelative(std::string_view external_relativ
#ifdef _WIN32
// Riivolution treats a backslash as just a standard filename character, but we can't replicate
// this properly on Windows. So if a file contains a backslash, immediately error out.
if (external_relative_path.find("\\") != std::string_view::npos)
if (external_relative_path.contains("\\"))
return std::nullopt;
#endif