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

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: Update TODO format 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
« no previous file with comments | « webrtc/api/objc/RTCStatsReport.h ('k') | webrtc/api/objc/RTCVideoFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/objc/RTCStatsReport.mm
diff --git a/webrtc/api/objc/RTCStatsReport.mm b/webrtc/api/objc/RTCStatsReport.mm
index 35a52290145534431b73c1640233ef24f973c71c..76de95078c1d6b43b16312402f95be5d9988f105 100644
--- a/webrtc/api/objc/RTCStatsReport.mm
+++ b/webrtc/api/objc/RTCStatsReport.mm
@@ -16,6 +16,8 @@
#import "webrtc/base/objc/NSString+StdString.h"
#import "webrtc/base/objc/RTCLogging.h"
+// TODO(hjon): Update nullability types. See http://crbug/webrtc/5592
+
@implementation RTCStatsReport
@synthesize timestamp = _timestamp;
@@ -50,9 +52,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;
}
« no previous file with comments | « webrtc/api/objc/RTCStatsReport.h ('k') | webrtc/api/objc/RTCVideoFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698