mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-01 02:11:47 +02:00
Reformat code with clang 10
This commit is contained in:
parent
59763f03c1
commit
3ac9245d00
24 changed files with 174 additions and 155 deletions
|
@ -803,7 +803,8 @@ inline void Error::parse_json(const Json& json)
|
|||
inline Json Error::to_json() const
|
||||
{
|
||||
Json j = {
|
||||
{"code", code_}, {"message", message_},
|
||||
{"code", code_},
|
||||
{"message", message_},
|
||||
};
|
||||
|
||||
if (!data_.is_null())
|
||||
|
@ -1065,7 +1066,8 @@ inline void Response::parse_json(const Json& json)
|
|||
inline Json Response::to_json() const
|
||||
{
|
||||
Json j = {
|
||||
{"jsonrpc", "2.0"}, {"id", id_.to_json()},
|
||||
{"jsonrpc", "2.0"},
|
||||
{"id", id_.to_json()},
|
||||
};
|
||||
|
||||
if (error_)
|
||||
|
@ -1129,7 +1131,8 @@ inline void Notification::parse_json(const Json& json)
|
|||
inline Json Notification::to_json() const
|
||||
{
|
||||
Json json = {
|
||||
{"jsonrpc", "2.0"}, {"method", method_},
|
||||
{"jsonrpc", "2.0"},
|
||||
{"method", method_},
|
||||
};
|
||||
|
||||
if (params_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue