Revert 6766 "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."

BUG=N/A
TBR=ajm@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/18899004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6769 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrike@webrtc.org 2014-07-23 21:38:09 +00:00
parent e2da234e27
commit 8721f989bf

View File

@ -64,9 +64,6 @@ 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; }
@ -81,9 +78,7 @@ 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.
// TODO(tommi): Make const again.
/*const*/ std::string id; // See below for contents.
const std::string id; // See below for contents.
std::string type; // See below for contents.
struct Value {