mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 00:59:32 +02:00
modernize with clang-tidy
This commit is contained in:
parent
e0d25d02ab
commit
8b231c7cc6
54 changed files with 182 additions and 196 deletions
|
@ -161,8 +161,7 @@ struct Snapcast
|
|||
}
|
||||
|
||||
virtual ~Snapcast()
|
||||
{
|
||||
}
|
||||
= default;
|
||||
|
||||
virtual void fromJson(const json& j)
|
||||
{
|
||||
|
@ -200,13 +199,13 @@ struct Snapserver : public Snapcast
|
|||
{
|
||||
}
|
||||
|
||||
virtual void fromJson(const json& j)
|
||||
void fromJson(const json& j) override
|
||||
{
|
||||
Snapcast::fromJson(j);
|
||||
controlProtocolVersion = jGet<int>(j, "controlProtocolVersion", 1);
|
||||
}
|
||||
|
||||
virtual json toJson()
|
||||
json toJson() override
|
||||
{
|
||||
json j = Snapcast::toJson();
|
||||
j["controlProtocolVersion"] = controlProtocolVersion;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue