Use text2b instead of container2b for u16string

Should be equivalent. The only reason why we use container2b in some
places is because strings based on `Steinberg::char16` arrays will have
an incorrect length on the Wine side, because character traits for
`wchar_t` is still reflects Linux instead of Windows there.
This commit is contained in:
Robbert van der Helm
2021-05-23 19:33:27 +02:00
parent 95de9ea0bf
commit 1464ec2ab0
2 changed files with 5 additions and 5 deletions
@@ -162,7 +162,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
template <typename S>
void serialize(S& s) {
s.object(result);
s.container2b(string, std::extent_v<Steinberg::Vst::String128>);
s.text2b(string, std::extent_v<Steinberg::Vst::String128>);
}
};
@@ -225,7 +225,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
void serialize(S& s) {
s.value8b(instance_id);
s.value4b(id);
s.container2b(string, std::extent_v<Steinberg::Vst::String128>);
s.text2b(string, std::extent_v<Steinberg::Vst::String128>);
}
};