Skip to content
Snippets Groups Projects
Unverified Commit 414ce8df authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Add missing override directives

parent 5bc1596c
No related branches found
No related tags found
1 merge request!154Dev tp cmake ci
...@@ -20,30 +20,30 @@ namespace { ...@@ -20,30 +20,30 @@ namespace {
   
class Child1 : public Base { class Child1 : public Base {
public: public:
virtual Base * clone ( ) const & { virtual Base * clone ( ) const & override {
return new Child1 ( * this ); return new Child1 ( * this );
} }
   
virtual Base * clone ( ) && { virtual Base * clone ( ) && override {
return new Child1 ( * this ); return new Child1 ( * this );
} }
   
virtual Type type ( ) const { virtual Type type ( ) const override {
return Type::CHILD1; return Type::CHILD1;
} }
}; };
   
class Child2 : public Base { class Child2 : public Base {
public: public:
virtual Base * clone ( ) const & { virtual Base * clone ( ) const & override {
return new Child2 ( * this ); return new Child2 ( * this );
} }
   
virtual Base * clone ( ) && { virtual Base * clone ( ) && override {
return new Child2 ( * this ); return new Child2 ( * this );
} }
   
virtual Type type ( ) const { virtual Type type ( ) const override {
return Type::CHILD2; return Type::CHILD2;
} }
}; };
......
...@@ -26,30 +26,30 @@ namespace { ...@@ -26,30 +26,30 @@ namespace {
   
class Child1 : public Base { class Child1 : public Base {
public: public:
virtual Base * clone ( ) const { virtual Base * clone ( ) const override {
return new Child1 ( * this ); return new Child1 ( * this );
} }
   
virtual Base * plunder ( ) && { virtual Base * plunder ( ) && override {
return new Child1 ( * this ); return new Child1 ( * this );
} }
   
virtual Type type ( ) const { virtual Type type ( ) const override {
return Type::CHILD1; return Type::CHILD1;
} }
}; };
   
class Child2 : public Base { class Child2 : public Base {
public: public:
virtual Base * clone ( ) const { virtual Base * clone ( ) const override {
return new Child2 ( * this ); return new Child2 ( * this );
} }
   
virtual Base * plunder ( ) && { virtual Base * plunder ( ) && override {
return new Child2 ( * this ); return new Child2 ( * this );
} }
   
virtual Type type ( ) const { virtual Type type ( ) const override {
return Type::CHILD2; return Type::CHILD2;
} }
}; };
......
...@@ -16,11 +16,11 @@ namespace { ...@@ -16,11 +16,11 @@ namespace {
pushBackChild ( std::move ( right ) ); pushBackChild ( std::move ( right ) );
} }
   
RegExpElement * clone ( ) const & { RegExpElement * clone ( ) const & override {
return new RegExpAlternation ( * this ); return new RegExpAlternation ( * this );
} }
   
RegExpElement * clone ( ) && { RegExpElement * clone ( ) && override {
return new RegExpAlternation ( std::move ( * this ) ); return new RegExpAlternation ( std::move ( * this ) );
} }
}; };
...@@ -30,11 +30,11 @@ namespace { ...@@ -30,11 +30,11 @@ namespace {
RegExpConcatenation ( RegExpElement && left, RegExpElement && right ) : BinaryNode < RegExpElement > ( std::move ( left ), std::move ( right ) ) { RegExpConcatenation ( RegExpElement && left, RegExpElement && right ) : BinaryNode < RegExpElement > ( std::move ( left ), std::move ( right ) ) {
} }
   
RegExpElement * clone ( ) const & { RegExpElement * clone ( ) const & override {
return new RegExpConcatenation ( * this ); return new RegExpConcatenation ( * this );
} }
   
RegExpElement * clone ( ) && { RegExpElement * clone ( ) && override {
return new RegExpConcatenation ( std::move ( * this ) ); return new RegExpConcatenation ( std::move ( * this ) );
} }
}; };
...@@ -47,11 +47,11 @@ namespace { ...@@ -47,11 +47,11 @@ namespace {
RegExpIteration ( const RegExpElement & element ) : UnaryNode < RegExpElement > ( ext::move_copy ( element ) ) { RegExpIteration ( const RegExpElement & element ) : UnaryNode < RegExpElement > ( ext::move_copy ( element ) ) {
} }
   
RegExpElement * clone ( ) const & { RegExpElement * clone ( ) const & override {
return new RegExpIteration ( * this ); return new RegExpIteration ( * this );
} }
   
RegExpElement * clone ( ) && { RegExpElement * clone ( ) && override {
return new RegExpIteration ( std::move ( * this ) ); return new RegExpIteration ( std::move ( * this ) );
} }
}; };
...@@ -63,11 +63,11 @@ namespace { ...@@ -63,11 +63,11 @@ namespace {
RegExpSymbol ( char symbol ) : m_symbol ( symbol ) { RegExpSymbol ( char symbol ) : m_symbol ( symbol ) {
} }
   
RegExpElement * clone ( ) const & { RegExpElement * clone ( ) const & override {
return new RegExpSymbol ( * this ); return new RegExpSymbol ( * this );
} }
   
RegExpElement * clone ( ) && { RegExpElement * clone ( ) && override {
return new RegExpSymbol ( std::move ( * this ) ); return new RegExpSymbol ( std::move ( * this ) );
} }
   
...@@ -78,22 +78,22 @@ namespace { ...@@ -78,22 +78,22 @@ namespace {
   
class RegExpEpsilon : public ext::NullaryNode < RegExpElement > { class RegExpEpsilon : public ext::NullaryNode < RegExpElement > {
public: public:
RegExpElement * clone ( ) const & { RegExpElement * clone ( ) const & override {
return new RegExpEpsilon ( * this ); return new RegExpEpsilon ( * this );
} }
   
RegExpElement * clone ( ) && { RegExpElement * clone ( ) && override {
return new RegExpEpsilon ( std::move ( * this ) ); return new RegExpEpsilon ( std::move ( * this ) );
} }
}; };
   
class RegExpEmpty : public ext::NullaryNode < RegExpElement > { class RegExpEmpty : public ext::NullaryNode < RegExpElement > {
public: public:
RegExpElement * clone ( ) const & { RegExpElement * clone ( ) const & override {
return new RegExpEmpty ( * this ); return new RegExpEmpty ( * this );
} }
   
RegExpElement * clone ( ) && { RegExpElement * clone ( ) && override {
return new RegExpEmpty ( std::move ( * this ) ); return new RegExpEmpty ( std::move ( * this ) );
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment