From 287d42f2b9690eb90116fd40312f6f98ae943141 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 26 Nov 2024 22:08:36 -0600 Subject: [PATCH] [ox/clargs] Cleanup --- deps/ox/src/ox/clargs/clargs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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