Remove unnecessary bitsery object lambdas

This commit is contained in:
Robbert van der Helm
2022-10-09 15:21:54 +02:00
parent 79c9a3f5f6
commit 0b3172d2d0
6 changed files with 7 additions and 14 deletions
@@ -126,8 +126,7 @@ struct GetResponse {
template <typename S> template <typename S>
void serialize(S& s) { void serialize(S& s) {
s.ext(result, bitsery::ext::InPlaceOptional(), s.ext(result, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };
+1 -2
View File
@@ -190,8 +190,7 @@ struct GetResizeHintsResponse {
template <typename S> template <typename S>
void serialize(S& s) { void serialize(S& s) {
s.ext(result, bitsery::ext::InPlaceOptional(), s.ext(result, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };
@@ -93,8 +93,7 @@ struct GetResponse {
template <typename S> template <typename S>
void serialize(S& s) { void serialize(S& s) {
s.ext(result, bitsery::ext::InPlaceOptional(), s.ext(result, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };
+1 -2
View File
@@ -101,8 +101,7 @@ struct GetInfoResponse {
template <typename S> template <typename S>
void serialize(S& s) { void serialize(S& s) {
s.ext(result, bitsery::ext::InPlaceOptional(), s.ext(result, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };
+1 -2
View File
@@ -37,8 +37,7 @@ struct SaveResponse {
template <typename S> template <typename S>
void serialize(S& s) { void serialize(S& s) {
s.ext(result, bitsery::ext::InPlaceOptional(), s.ext(result, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };
+2 -4
View File
@@ -369,8 +369,7 @@ struct Vst2EventResult {
s.value8b(return_value); s.value8b(return_value);
s.object(payload); s.object(payload);
s.ext(value_payload, bitsery::ext::InPlaceOptional(), s.ext(value_payload, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };
@@ -479,8 +478,7 @@ struct Vst2Event {
s.value4b(option); s.value4b(option);
s.object(payload); s.object(payload);
s.ext(value_payload, bitsery::ext::InPlaceOptional(), s.ext(value_payload, bitsery::ext::InPlaceOptional());
[](S& s, auto& v) { s.object(v); });
} }
}; };