Skip to content

Commit 1f52307

Browse files
authored
WinPcapLiveDevice.h : explicit override (#1592)
1 parent 3919812 commit 1f52307

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Pcap++/header/WinPcapLiveDevice.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ namespace pcpp
3232
WinPcapLiveDevice& operator=(const WinPcapLiveDevice& other);
3333

3434
public:
35-
virtual LiveDeviceType getDeviceType() const
35+
LiveDeviceType getDeviceType() const override
3636
{
3737
return WinPcapDevice;
3838
}
3939

4040
bool startCapture(OnPacketArrivesCallback onPacketArrives, void* onPacketArrivesUserCookie,
4141
int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate,
42-
void* onStatsUpdateUserCookie);
42+
void* onStatsUpdateUserCookie) override;
4343
bool startCapture(int intervalInSecondsToUpdateStats, OnStatsUpdateCallback onStatsUpdate,
44-
void* onStatsUpdateUserCookie);
45-
bool startCapture(RawPacketVector& capturedPacketsVector)
44+
void* onStatsUpdateUserCookie) override;
45+
bool startCapture(RawPacketVector& capturedPacketsVector) override
4646
{
4747
return PcapLiveDevice::startCapture(capturedPacketsVector);
4848
}

0 commit comments

Comments
 (0)