clang-modernize -add-override

This commit is contained in:
Tillmann Karras
2014-03-08 01:54:44 +01:00
parent c89f04a7c5
commit f28116b7da
67 changed files with 401 additions and 401 deletions

View File

@ -59,7 +59,7 @@ public:
virtual ControlState GetState() const = 0;
Input* ToInput() { return this; }
Input* ToInput() override { return this; }
};
//
@ -74,7 +74,7 @@ public:
virtual void SetState(ControlState state) = 0;
Output* ToOutput() { return this; }
Output* ToOutput() override { return this; }
};
virtual ~Device();
@ -104,12 +104,12 @@ protected:
: m_low(*low), m_high(*high)
{}
ControlState GetState() const
ControlState GetState() const override
{
return (1 + m_high.GetState() - m_low.GetState()) / 2;
}
std::string GetName() const
std::string GetName() const override
{
return m_low.GetName() + *m_high.GetName().rbegin();
}