mirror of
https://github.com/mat007/turtle.git
synced 2026-08-20 21:09:46 +00:00
Use override instead of virtual
This commit is contained in:
parent
cb9e7e226b
commit
1c168d57fb
8 changed files with 36 additions and 36 deletions
|
|
@ -392,7 +392,7 @@ private:
|
|||
};
|
||||
class my_implementation : public my_interface
|
||||
{
|
||||
virtual void my_method() {}
|
||||
virtual void my_method() override {}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
@ -591,7 +591,7 @@ struct base
|
|||
};
|
||||
struct derived : base
|
||||
{
|
||||
virtual void f() {}
|
||||
virtual void f() override {}
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue