From 0f7328cd6bf5d79c9c8ccf527ffef2827119e83b Mon Sep 17 00:00:00 2001 From: "tommi@webrtc.org" Date: Wed, 23 Jul 2014 16:31:57 +0000 Subject: [PATCH] Temporarily add a default ctor to StatsReport and make |id| non const. As soon as I've updated the chrome side, I'll revert this cl. TBR=henrike Review URL: https://webrtc-codereview.appspot.com/16149004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6766 4adac7df-926f-26a2-2b94-8c16560cd09d --- talk/app/webrtc/statstypes.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/talk/app/webrtc/statstypes.h b/talk/app/webrtc/statstypes.h index 033ed35038..7b411eb686 100644 --- a/talk/app/webrtc/statstypes.h +++ b/talk/app/webrtc/statstypes.h @@ -64,6 +64,9 @@ class StatsReport { explicit StatsReport(const std::string& id) : id(id), timestamp(0) {} public: + // TODO(tommi): Remove this ctor. + StatsReport() : timestamp(0) {} + // Operators provided for STL container/algorithm support. bool operator<(const StatsReport& other) const { return id < other.id; } bool operator==(const StatsReport& other) const { return id == other.id; } @@ -78,7 +81,9 @@ class StatsReport { // The unique identifier for this object. // This is used as a key for this report in ordered containers, // so it must never be changed. - const std::string id; // See below for contents. + + // TODO(tommi): Make const again. + /*const*/ std::string id; // See below for contents. std::string type; // See below for contents. struct Value {