mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Use the in new place optional extension
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
|
||||
#include <pluginterfaces/vst/ivsteditcontroller.h>
|
||||
|
||||
#include "../../../bitsery/ext/in-place-optional.h"
|
||||
#include "../../common.h"
|
||||
#include "../base.h"
|
||||
#include "bitsery/ext/std_optional.h"
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
@@ -98,7 +98,7 @@ class YaProgress : public Steinberg::Vst::IProgress {
|
||||
void serialize(S& s) {
|
||||
s.value8b(owner_instance_id);
|
||||
s.value4b(type);
|
||||
s.ext(optional_description, bitsery::ext::StdOptional{},
|
||||
s.ext(optional_description, bitsery::ext::InPlaceOptional{},
|
||||
[](S& s, std::u16string& description) {
|
||||
s.text2b(description, 1024);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user