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
This commit is contained in:
tommi@webrtc.org 2014-07-23 16:31:57 +00:00
parent 9359cb3e75
commit 0f7328cd6b

View File

@ -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 {