Remove top-level const from parameters in function declarations.
This is a safe cleanup change since top-level const applied to parameters in function declarations (that are not also definitions) are ignored by the compiler. Hence, such changes do not change the type of the declared functions and are simply no-ops. Bug: webrtc:13610 Change-Id: Ibafb92c45119a6d8bdb6f9109aa8dad6385163a9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249086 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35802}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
c98687a2ef
commit
62238097c9
@ -25,11 +25,11 @@ class RTPStream {
|
||||
public:
|
||||
virtual ~RTPStream() {}
|
||||
|
||||
virtual void Write(const uint8_t payloadType,
|
||||
const uint32_t timeStamp,
|
||||
const int16_t seqNo,
|
||||
virtual void Write(uint8_t payloadType,
|
||||
uint32_t timeStamp,
|
||||
int16_t seqNo,
|
||||
const uint8_t* payloadData,
|
||||
const size_t payloadSize,
|
||||
size_t payloadSize,
|
||||
uint32_t frequency) = 0;
|
||||
|
||||
// Returns the packet's payload size. Zero should be treated as an
|
||||
@ -75,11 +75,11 @@ class RTPBuffer : public RTPStream {
|
||||
|
||||
~RTPBuffer() = default;
|
||||
|
||||
void Write(const uint8_t payloadType,
|
||||
const uint32_t timeStamp,
|
||||
const int16_t seqNo,
|
||||
void Write(uint8_t payloadType,
|
||||
uint32_t timeStamp,
|
||||
int16_t seqNo,
|
||||
const uint8_t* payloadData,
|
||||
const size_t payloadSize,
|
||||
size_t payloadSize,
|
||||
uint32_t frequency) override;
|
||||
|
||||
size_t Read(RTPHeader* rtp_header,
|
||||
@ -108,11 +108,11 @@ class RTPFile : public RTPStream {
|
||||
|
||||
void ReadHeader();
|
||||
|
||||
void Write(const uint8_t payloadType,
|
||||
const uint32_t timeStamp,
|
||||
const int16_t seqNo,
|
||||
void Write(uint8_t payloadType,
|
||||
uint32_t timeStamp,
|
||||
int16_t seqNo,
|
||||
const uint8_t* payloadData,
|
||||
const size_t payloadSize,
|
||||
size_t payloadSize,
|
||||
uint32_t frequency) override;
|
||||
|
||||
size_t Read(RTPHeader* rtp_header,
|
||||
|
Reference in New Issue
Block a user