diff --git a/deps/ox/src/ox/clargs/clargs.cpp b/deps/ox/src/ox/clargs/clargs.cpp index bdf77939..cc615379 100644 --- a/deps/ox/src/ox/clargs/clargs.cpp +++ b/deps/ox/src/ox/clargs/clargs.cpp @@ -14,10 +14,10 @@ namespace ox { ClArgs::ClArgs(int argc, const char **args) noexcept { auto const argv = ox::SpanView{args, static_cast(argc)}; for (auto i = 0u; i < static_cast(argc); ++i) { - auto arg = String(argv[i]); + auto arg = StringView(argv[i]); if (arg[0] == '-') { while (arg[0] == '-' && arg.len()) { - arg = arg.substr(1); + arg = substr(arg, 1); } m_bools[arg] = true; // parse additional arguments