mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 23:38:09 -05:00
refactor: use std ranges functions where applicable
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user