modernize with clang-tidy

This commit is contained in:
badaix 2019-09-25 19:02:33 +02:00
parent e0d25d02ab
commit 8b231c7cc6
54 changed files with 182 additions and 196 deletions

View file

@ -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;