in RtpExtension constructors pass strings by string_view rather than by value
To allow construct that object from an existent string_view without explicit conversion Bug: webrtc:11428 Change-Id: I38d93573be72e307bdf7068a6300d10cf46d2d62 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/171689 Reviewed-by: Markus Handell <handellm@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30904}
This commit is contained in:
committed by
Commit Bot
parent
7ac010cea4
commit
2b4ec9e667
@ -232,9 +232,9 @@ struct RTC_EXPORT RtpHeaderExtensionCapability {
|
||||
|
||||
// Constructors for convenience.
|
||||
RtpHeaderExtensionCapability();
|
||||
explicit RtpHeaderExtensionCapability(std::string uri);
|
||||
RtpHeaderExtensionCapability(std::string uri, int preferred_id);
|
||||
RtpHeaderExtensionCapability(std::string uri,
|
||||
explicit RtpHeaderExtensionCapability(absl::string_view uri);
|
||||
RtpHeaderExtensionCapability(absl::string_view uri, int preferred_id);
|
||||
RtpHeaderExtensionCapability(absl::string_view uri,
|
||||
int preferred_id,
|
||||
RtpTransceiverDirection direction);
|
||||
~RtpHeaderExtensionCapability();
|
||||
@ -251,8 +251,8 @@ struct RTC_EXPORT RtpHeaderExtensionCapability {
|
||||
// RTP header extension, see RFC8285.
|
||||
struct RTC_EXPORT RtpExtension {
|
||||
RtpExtension();
|
||||
RtpExtension(std::string uri, int id);
|
||||
RtpExtension(std::string uri, int id, bool encrypt);
|
||||
RtpExtension(absl::string_view uri, int id);
|
||||
RtpExtension(absl::string_view uri, int id, bool encrypt);
|
||||
~RtpExtension();
|
||||
|
||||
std::string ToString() const;
|
||||
|
||||
Reference in New Issue
Block a user