From 75b7f17c29565ac8ddba38c14239113ac471ca5a Mon Sep 17 00:00:00 2001 From: "tommi@webrtc.org" Date: Thu, 12 Mar 2015 13:30:43 +0000 Subject: [PATCH] Temporary interface change to StatsReport::Id. This change is just to allow rolling into Chromium, update Chromium and then commit the actual change in WebRTC that requires the interface change. It allows using a StatsReport::Id object as a pointer (foo->Bar()), since in an upcoming change, Id objects will be pointers. R=magjed@webrtc.org BUG=2822 Review URL: https://webrtc-codereview.appspot.com/43689004 Cr-Commit-Position: refs/heads/master@{#8697} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8697 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/app/webrtc/statstypes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/talk/app/webrtc/statstypes.h b/talk/app/webrtc/statstypes.h index 92e8f74171..22fc9d7348 100644 --- a/talk/app/webrtc/statstypes.h +++ b/talk/app/webrtc/statstypes.h @@ -228,6 +228,9 @@ class StatsReport { virtual bool Equals(const Id& other) const; virtual std::string ToString() const = 0; + // TODO(tommi): Remove this after rolling into Chrome. + const Id* operator->() const { return this; } + protected: Id(StatsType type); // Only meant for derived classes. const StatsType type_;