Skip to content

Commit e3df587

Browse files
rzvncjJenkins-dev
authored andcommitted
Remove virtual when override also present
Commit 8c8e96 has missed a few spots when removing redundant `virtual` member function specifier where `override` is also present. Signed-off-by: Razvan Cojocaru <[email protected]>
1 parent a6f6e26 commit e3df587

25 files changed

+58
-58
lines changed

client/ovpncli.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ class OpenVPNClient : public TunBuilderBase, // expose tun builder v
724724

725725
// Callback for logging.
726726
// Will be called from the thread executing connect().
727-
virtual void log(const LogInfo &) override = 0;
727+
void log(const LogInfo &) override = 0;
728728

729729
// External PKI callbacks
730730
// Will be called from the thread executing connect().

doc/developer_guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ implementations for callbacks including event and logging notifications:
3838
class Client : public ClientAPI::OpenVPNClient
3939
{
4040
public:
41-
virtual void event(const Event&) override { // events delivered here
41+
void event(const Event&) override { // events delivered here
4242
...
4343
}
44-
virtual void log(const LogInfo&) override { // logging delivered here
44+
void log(const LogInfo&) override { // logging delivered here
4545
...
4646
}
4747

openvpn/asio/asioboundsock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class Socket : public SocketBase
125125
unsigned short port_;
126126
};
127127

128-
virtual void async_connect_post_open(const protocol_type &protocol, openvpn_io::error_code &ec) override
128+
void async_connect_post_open(const protocol_type &protocol, openvpn_io::error_code &ec) override
129129
{
130130
if (protocol == openvpn_io::ip::tcp::v4())
131131
v4.post_open(this, ec);

openvpn/buffer/bufcomposed.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class BufferComposed
4949
return iter != bc.bv.end();
5050
}
5151

52-
virtual void next_buffer() override
52+
void next_buffer() override
5353
{
5454
next_buffer_impl();
5555
}

openvpn/client/cliconnect.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class ClientConnect : ClientProto::NotifyCallback,
309309
}
310310
}
311311

312-
virtual void bulk_resolve_done() override
312+
void bulk_resolve_done() override
313313
{
314314
if (!halt && generation == 0)
315315
new_client();
@@ -390,7 +390,7 @@ class ClientConnect : ClientProto::NotifyCallback,
390390
return true;
391391
}
392392

393-
virtual void client_proto_connected() override
393+
void client_proto_connected() override
394394
{
395395
conn_timer.cancel();
396396
conn_timer_pending = false;
@@ -431,7 +431,7 @@ class ClientConnect : ClientProto::NotifyCallback,
431431
self->restart_wait_callback(gen, error); });
432432
}
433433

434-
virtual void client_proto_auth_pending_timeout(int timeout) override
434+
void client_proto_auth_pending_timeout(int timeout) override
435435
{
436436
if (conn_timer_pending)
437437
{
@@ -490,7 +490,7 @@ class ClientConnect : ClientProto::NotifyCallback,
490490
queue_restart(delay);
491491
}
492492

493-
virtual void client_proto_terminate() override
493+
void client_proto_terminate() override
494494
{
495495
if (!halt)
496496
{
@@ -698,22 +698,22 @@ class ClientConnect : ClientProto::NotifyCallback,
698698

699699
// ClientLifeCycle::NotifyCallback callbacks
700700

701-
virtual void cln_stop() override
701+
void cln_stop() override
702702
{
703703
thread_safe_stop();
704704
}
705705

706-
virtual void cln_pause(const std::string &reason) override
706+
void cln_pause(const std::string &reason) override
707707
{
708708
thread_safe_pause(reason);
709709
}
710710

711-
virtual void cln_resume() override
711+
void cln_resume() override
712712
{
713713
thread_safe_resume();
714714
}
715715

716-
virtual void cln_reconnect(int seconds) override
716+
void cln_reconnect(int seconds) override
717717
{
718718
thread_safe_reconnect(seconds);
719719
}

openvpn/common/daemon.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LogReopen : public LogSetup
4040
{
4141
}
4242

43-
virtual void reopen() override
43+
void reopen() override
4444
{
4545
try
4646
{

openvpn/common/logsetup.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MultiLogSetup : public std::vector<LogSetup::Ptr>,
3131
public:
3232
typedef RCPtr<MultiLogSetup> Ptr;
3333

34-
virtual void reopen() override
34+
void reopen() override
3535
{
3636
for (const auto &e : *this)
3737
e->reopen();

openvpn/common/process.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ struct Command : public Action
155155
return ret;
156156
}
157157

158-
virtual void execute(std::ostream &os) override
158+
void execute(std::ostream &os) override
159159
{
160160
if (!argv.empty())
161161
{
@@ -180,7 +180,7 @@ struct Command : public Action
180180
os << "Error: command called with empty argv\n";
181181
}
182182

183-
virtual std::string to_string() const override
183+
std::string to_string() const override
184184
{
185185
return argv.to_string();
186186
}

openvpn/dco/ovpndcowincli.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ class OvpnDcoWinClient : public Client,
569569
return nullptr;
570570
}
571571

572-
virtual SessionStats::DCOTransportSource::Data dco_transport_stats_delta() override
572+
SessionStats::DCOTransportSource::Data dco_transport_stats_delta() override
573573
{
574574
if (halt)
575575
{

openvpn/linux/procfs.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProcFS : public Action
3333
{
3434
}
3535

36-
virtual void execute(std::ostream &os) override
36+
void execute(std::ostream &os) override
3737
{
3838
os << to_string() << "\n";
3939
try
@@ -46,7 +46,7 @@ class ProcFS : public Action
4646
}
4747
}
4848

49-
virtual std::string to_string() const override
49+
std::string to_string() const override
5050
{
5151
return to_string(fn, text);
5252
}

0 commit comments

Comments
 (0)