mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 04:02:15 +02:00
Changed virtual override to final
It's possible that someone might try to derive from and override here, and if so the result will be perhaps not as expected. This change will make it slightly harder to produce an unexpected call to the wrong vtable dispatch from the ctor. Signed-off-by: Charlie Vigue <charlie.vigue@openvpn.com>
This commit is contained in:
parent
22ba196429
commit
3927b61b33
@ -59,7 +59,7 @@ class BufferComposed
|
||||
return iter != bc.bv.end();
|
||||
}
|
||||
|
||||
virtual void next_buffer() override
|
||||
virtual void next_buffer() final
|
||||
{
|
||||
if (iter_defined())
|
||||
reset_buf(**iter++);
|
||||
|
Loading…
Reference in New Issue
Block a user