mirror of
https://github.com/mat007/turtle.git
synced 2026-08-21 21:19:47 +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
|
|
@ -24,7 +24,7 @@ namespace limitations_const_parameter_warning_explanation {
|
|||
class derived : public base
|
||||
{
|
||||
public:
|
||||
virtual void method(const int);
|
||||
void method(const int) override;
|
||||
};
|
||||
|
||||
void derived::method(int) {}
|
||||
|
|
@ -35,7 +35,7 @@ namespace {
|
|||
//[ limitations_const_parameter_warning_solution
|
||||
MOCK_BASE_CLASS(mock_base, base)
|
||||
{
|
||||
void method(const int i) { method_stub(i); }
|
||||
void method(const int i) override { method_stub(i); }
|
||||
MOCK_METHOD(method_stub, 1, void(int), method)
|
||||
};
|
||||
//]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue