From f678c049f9f2dd8ca1424af71e214fa256927771 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 28 Feb 2018 13:31:44 +0100 Subject: qrtplib: replaced size_t by std::size_t --- qrtplib/rtcpbyepacket.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qrtplib/rtcpbyepacket.h') diff --git a/qrtplib/rtcpbyepacket.h b/qrtplib/rtcpbyepacket.h index 6619af851..993d40df4 100644 --- a/qrtplib/rtcpbyepacket.h +++ b/qrtplib/rtcpbyepacket.h @@ -57,7 +57,7 @@ public: * is referenced inside the class (no copy of the data is made) one must make sure that the memory it * points to is valid as long as the class instance exists. */ - RTCPBYEPacket(uint8_t *data, size_t datalen); + RTCPBYEPacket(uint8_t *data, std::size_t datalen); ~RTCPBYEPacket() { } @@ -74,14 +74,14 @@ public: bool HasReasonForLeaving() const; /** Returns the length of the string which describes why the source(s) left. */ - size_t GetReasonLength() const; + std::size_t GetReasonLength() const; /** Returns the actual reason for leaving data. */ uint8_t *GetReasonData(); private: RTPEndian m_endian; - size_t reasonoffset; + std::size_t reasonoffset; }; inline int RTCPBYEPacket::GetSSRCCount() const @@ -110,14 +110,14 @@ inline bool RTCPBYEPacket::HasReasonForLeaving() const return true; } -inline size_t RTCPBYEPacket::GetReasonLength() const +inline std::size_t RTCPBYEPacket::GetReasonLength() const { if (!knownformat) return 0; if (reasonoffset == 0) return 0; uint8_t *reasonlen = (data + reasonoffset); - return (size_t)(*reasonlen); + return (std::size_t)(*reasonlen); } inline uint8_t *RTCPBYEPacket::GetReasonData() -- cgit v1.2.3-70-g09d2