mirror of https://github.com/CGAL/cgal
use override instead of virtual
This commit is contained in:
parent
2701314055
commit
561256ee0b
|
|
@ -187,20 +187,20 @@ struct Input_const_iterator_container
|
|||
public:
|
||||
Input_const_iterator_container(const Iterator& it) : it_(it) {}
|
||||
|
||||
virtual ~Input_const_iterator_container() {}
|
||||
~Input_const_iterator_container() override {}
|
||||
|
||||
virtual const Value& operator*()
|
||||
const Value& operator*() override
|
||||
{
|
||||
return *it_;
|
||||
}
|
||||
|
||||
virtual Input_const_iterator_interface<Value>* operator++()
|
||||
Input_const_iterator_interface<Value>* operator++() override
|
||||
{
|
||||
++it_;
|
||||
return this;
|
||||
}
|
||||
|
||||
virtual bool operator!=(const Input_const_iterator_interface<Value>* other) const
|
||||
bool operator!=(const Input_const_iterator_interface<Value>* other) const override
|
||||
{
|
||||
const Self* other_casted = dynamic_cast<const Self*>(other);
|
||||
if (other_casted == nullptr)
|
||||
|
|
@ -208,7 +208,7 @@ public:
|
|||
return it_ != other_casted->it_;
|
||||
}
|
||||
|
||||
virtual Input_const_iterator_interface<Value>* clone()
|
||||
Input_const_iterator_interface<Value>* clone() override
|
||||
{
|
||||
return new Input_const_iterator_container<Value, Iterator>(it_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue