Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: webrtc/api/objc/RTCStatsReport.mm

Issue 1726213002: Compile rtc_api_objc on Mac. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add nullability attributes and comment out type arguments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/objc/RTCStatsReport.mm
diff --git a/webrtc/api/objc/RTCStatsReport.mm b/webrtc/api/objc/RTCStatsReport.mm
index 35a52290145534431b73c1640233ef24f973c71c..b3cd1a19efbf5355a1aa55b3791513092eb985e4 100644
--- a/webrtc/api/objc/RTCStatsReport.mm
+++ b/webrtc/api/objc/RTCStatsReport.mm
@@ -50,9 +50,8 @@
valuePair.second->ToString()];
// Not expecting duplicate keys.
- RTC_DCHECK(values[key]);
-
- values[key] = value;
+ RTC_DCHECK(![values objectForKey:key]);
+ [values setObject:value forKey:key];
}
_values = values;
}

Powered by Google App Engine
This is Rietveld 408576698