[keel,studio] Cleanup string handling

This commit is contained in:
2023-12-03 22:26:25 -06:00
parent ce514d586c
commit 26a2d340d6
3 changed files with 6 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ ox::Error writeConfig(keel::Context *ctx, T *data) noexcept {
}
template<typename T, typename Func>
void openConfig(keel::Context *ctx, const auto &name, Func f) noexcept {
void openConfig(keel::Context *ctx, ox::CRStringView name, Func f) noexcept {
oxAssert(name != "", "Config type has no TypeName");
const auto [c, err] = readConfig<T>(ctx, name);
oxLogError(err);
@@ -78,8 +78,8 @@ void openConfig(keel::Context *ctx, Func f) noexcept {
}
template<typename T, typename Func>
void editConfig(keel::Context *ctx, const auto &name, Func f) noexcept {
oxAssert(ox_strcmp(name, ""), "Config type has no TypeName");
void editConfig(keel::Context *ctx, ox::CRStringView name, Func f) noexcept {
oxAssert(name != "", "Config type has no TypeName");
auto [c, err] = readConfig<T>(ctx, name);
oxLogError(err);
f(&c);