diff --git a/deps/ox/src/ox/clargs/clargs.cpp b/deps/ox/src/ox/clargs/clargs.cpp index 90009b2f..41feed51 100644 --- a/deps/ox/src/ox/clargs/clargs.cpp +++ b/deps/ox/src/ox/clargs/clargs.cpp @@ -42,7 +42,7 @@ bool ClArgs::getBool(ox::CRStringView arg, bool defaultValue) const noexcept { return !err ? *value : defaultValue; } -String ClArgs::getString(ox::CRStringView arg, const char *defaultValue) const noexcept { +String ClArgs::getString(ox::CRStringView arg, ox::StringView defaultValue) const noexcept { auto [value, err] = m_strings.at(arg); return !err ? ox::String(*value) : ox::String(defaultValue); } diff --git a/deps/ox/src/ox/clargs/clargs.hpp b/deps/ox/src/ox/clargs/clargs.hpp index b0ab1831..ed514409 100644 --- a/deps/ox/src/ox/clargs/clargs.hpp +++ b/deps/ox/src/ox/clargs/clargs.hpp @@ -26,7 +26,7 @@ class ClArgs { bool getBool(ox::CRStringView arg, bool defaultValue) const noexcept; [[nodiscard]] - String getString(ox::CRStringView argName, const char *defaultValue) const noexcept; + String getString(ox::CRStringView argName, ox::StringView defaultValue) const noexcept; [[nodiscard]] int getInt(ox::CRStringView arg, int defaultValue) const noexcept;