Removed the const char* (StaticString) type from RTCStatsMember.
std::string is all we need. const char* is an annoying special case because they can't be compared with ==. Having two different string types was a premature optimization. BUG=chromium:627816 NOTRY=True Review-Url: https://codereview.webrtc.org/2340303002 Cr-Commit-Position: refs/heads/master@{#14235}
This commit is contained in:
@ -171,7 +171,6 @@ class RTCStatsMemberInterface {
|
||||
kInt64, // int64_t
|
||||
kUint64, // uint64_t
|
||||
kDouble, // double
|
||||
kStaticString, // const char*
|
||||
kString, // std::string
|
||||
|
||||
kSequenceInt32, // std::vector<int32_t>
|
||||
@ -179,7 +178,6 @@ class RTCStatsMemberInterface {
|
||||
kSequenceInt64, // std::vector<int64_t>
|
||||
kSequenceUint64, // std::vector<uint64_t>
|
||||
kSequenceDouble, // std::vector<double>
|
||||
kSequenceStaticString, // std::vector<const char*>
|
||||
kSequenceString, // std::vector<std::string>
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user