Replace virtual with override where possible.

Using clang-tidy
This commit is contained in:
Alexey Sokolov
2015-12-08 20:51:50 +00:00
parent 79e979e5cd
commit 16a8c77737
59 changed files with 101 additions and 104 deletions
+3 -4
View File
@@ -33,7 +33,7 @@ class CStickyChan : public CModule {
&CStickyChan::OnListCommand),
"", "Lists sticky channels");
}
virtual ~CStickyChan() {}
~CStickyChan() override {}
bool OnLoad(const CString& sArgs, CString& sMessage) override;
@@ -56,9 +56,8 @@ class CStickyChan : public CModule {
return CONTINUE;
}
virtual void OnMode(const CNick& pOpNick, CChan& Channel, char uMode,
const CString& sArg, bool bAdded,
bool bNoChange) override {
void OnMode(const CNick& pOpNick, CChan& Channel, char uMode,
const CString& sArg, bool bAdded, bool bNoChange) override {
if (uMode == CChan::M_Key) {
if (bAdded) {
// We ignore channel key "*" because of some broken nets.