refactor: use std ranges functions where applicable

This commit is contained in:
Jan committed 2024-03-24 20:49:15 +01:00
1 parent 132cccb971
commit 239001e6f2
42 files changed
+251 -295

No files matched your search

@@ -139,7 +139,7 @@ class AssetDumperSndBank::Internal
{
fs::path assetPath(m_context.m_base_path);
std::replace(outputFileName.begin(), outputFileName.end(), '\\', '/');
std::ranges::replace(outputFileName, '\\', '/');
for (const auto& droppedPrefix : PREFIXES_TO_DROP)
{
if (outputFileName.rfind(droppedPrefix, 0) != std::string::npos)