Mark all virtual overrides in the hierarchy of Transport as virtual + OVERRIDE.
This also marks all virtual overrides of other classes in the same files. This will make a subsequent change I intend to do safer, where I'll change the argument types of the base Transport functions, by breaking the compile if I miss any overrides. This also highlighted a number of unused functions. I've removed some of these. TBR=mflodman@webrtc.org, pkasting@chromium.org BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/28709004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7421 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -43,7 +43,7 @@ class LoopBackTransport : public webrtc::Transport {
|
||||
void DropEveryNthPacket(int n) {
|
||||
_packetLoss = n;
|
||||
}
|
||||
virtual int SendPacket(int channel, const void *data, int len) {
|
||||
virtual int SendPacket(int channel, const void *data, int len) OVERRIDE {
|
||||
_count++;
|
||||
if (_packetLoss > 0) {
|
||||
if ((_count % _packetLoss) == 0) {
|
||||
@ -70,7 +70,7 @@ class LoopBackTransport : public webrtc::Transport {
|
||||
}
|
||||
return len;
|
||||
}
|
||||
virtual int SendRTCPPacket(int channel, const void *data, int len) {
|
||||
virtual int SendRTCPPacket(int channel, const void *data, int len) OVERRIDE {
|
||||
if (_rtpRtcpModule->IncomingRtcpPacket((const uint8_t*)data, len) < 0) {
|
||||
return -1;
|
||||
}
|
||||
@ -91,7 +91,7 @@ class TestRtpReceiver : public NullRtpData {
|
||||
virtual int32_t OnReceivedPayloadData(
|
||||
const uint8_t* payloadData,
|
||||
const uint16_t payloadSize,
|
||||
const webrtc::WebRtcRTPHeader* rtpHeader) {
|
||||
const webrtc::WebRtcRTPHeader* rtpHeader) OVERRIDE {
|
||||
EXPECT_LE(payloadSize, sizeof(_payloadData));
|
||||
memcpy(_payloadData, payloadData, payloadSize);
|
||||
memcpy(&_rtpHeader, rtpHeader, sizeof(_rtpHeader));
|
||||
|
||||
Reference in New Issue
Block a user