This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ class RTC_EXPORT RTCStatsReport : public rtc::RefCountInterface {
84
84
// Removes the stats object from the report, returning ownership of it or null
85
85
// if there is no object with |id|.
86
86
std::unique_ptr<const RTCStats> Take (const std::string& id);
87
- // Takes ownership of all the stats in |victim |, leaving it empty.
88
- void TakeMembersFrom (rtc::scoped_refptr<RTCStatsReport> victim );
87
+ // Takes ownership of all the stats in |other |, leaving it empty.
88
+ void TakeMembersFrom (rtc::scoped_refptr<RTCStatsReport> other );
89
89
90
90
// Stats iterators. Stats are ordered lexicographically on |RTCStats::id|.
91
91
ConstIterator begin () const ;
Original file line number Diff line number Diff line change @@ -98,13 +98,12 @@ std::unique_ptr<const RTCStats> RTCStatsReport::Take(const std::string& id) {
98
98
return stats;
99
99
}
100
100
101
- void RTCStatsReport::TakeMembersFrom (
102
- rtc::scoped_refptr<RTCStatsReport> victim) {
103
- for (StatsMap::iterator it = victim->stats_ .begin ();
104
- it != victim->stats_ .end (); ++it) {
101
+ void RTCStatsReport::TakeMembersFrom (rtc::scoped_refptr<RTCStatsReport> other) {
102
+ for (StatsMap::iterator it = other->stats_ .begin (); it != other->stats_ .end ();
103
+ ++it) {
105
104
AddStats (std::unique_ptr<const RTCStats>(it->second .release ()));
106
105
}
107
- victim ->stats_ .clear ();
106
+ other ->stats_ .clear ();
108
107
}
109
108
110
109
RTCStatsReport::ConstIterator RTCStatsReport::begin () const {
You can’t perform that action at this time.
0 commit comments