From cf5786a4ed04d35ce56b620f8289fdef4e6c4fb8 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 26 Jun 2023 23:57:17 -0500 Subject: [PATCH] [ox/std] Change InitTraceMsg::appName from C string to BString<128> --- deps/ox/src/ox/std/trace.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/ox/src/ox/std/trace.hpp b/deps/ox/src/ox/std/trace.hpp index 79f8e36b..9fc70957 100644 --- a/deps/ox/src/ox/std/trace.hpp +++ b/deps/ox/src/ox/std/trace.hpp @@ -95,14 +95,14 @@ constexpr Error model(T *io, ox::CommonPtrWith auto *obj) noexc struct InitTraceMsg { static constexpr auto TypeName = "net.drinkingtea.ox.trace.InitTraceMsg"; - static constexpr auto TypeVersion = 1; - const char *appName = ""; + static constexpr auto TypeVersion = 2; + ox::BasicString<128> appName; }; template constexpr Error model(T *io, ox::CommonPtrWith auto *obj) noexcept { oxReturnError(io->template setTypeInfo()); - oxReturnError(io->fieldCString("appName", &obj->appName)); + oxReturnError(io->field("appName", &obj->appName)); return {}; }