Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 30, 2024
1 parent fb1df93 commit b10f994
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static size_t serialize_string (std::string_view str, ArenaType& arena)

template <typename MemoryResourceType>
static nonstd::span<const std::byte> dump_serialized_bytes (const ArenaAllocator<MemoryResourceType>& arena,
const typename ArenaAllocator<MemoryResourceType>::Frame* frame = nullptr)
const typename ArenaAllocator<MemoryResourceType>::Frame* frame = nullptr)
{
const auto bytes_offset = frame == nullptr ? 0 : frame->bytes_used_at_start;
const auto bytes_count = arena.get_bytes_used() - bytes_offset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ void PluginStateImpl<ParameterState, NonParameterState>::deserialize (juce::Memo
template <typename ParameterState, typename NonParameterState>
json PluginStateImpl<ParameterState, NonParameterState>::serialize (const PluginStateImpl& object)
{
return {
return
{
#if defined JucePlugin_VersionString
{ "version", currentPluginVersion },
#else
{ "version", chowdsp::Version {} },
#endif
{ "params", ParamHolder::serialize_json (object.params) },
{ "non-params", NonParamState::serialize_json (object.nonParams) },
{ "params", ParamHolder::serialize_json (object.params) },
{ "non-params", NonParamState::serialize_json (object.nonParams) },
};
}

Expand Down

0 comments on commit b10f994

Please sign in to comment.