Use suffixed {uint,int}{8,16,32,64}_t types.
Removes the use of uint8, etc. in favor of uint8_t.
BUG=webrtc:5024
R=henrik.lundin@webrtc.org, henrikg@webrtc.org, perkj@webrtc.org, solenberg@webrtc.org, stefan@webrtc.org, tina.legrand@webrtc.org
Review URL: https://codereview.webrtc.org/1362503003 .
Cr-Commit-Position: refs/heads/master@{#10196}
diff --git a/talk/app/webrtc/statstypes.h b/talk/app/webrtc/statstypes.h
index 33b2fa7..7fa9f32 100644
--- a/talk/app/webrtc/statstypes.h
+++ b/talk/app/webrtc/statstypes.h
@@ -250,16 +250,16 @@
struct Value {
enum Type {
- kInt, // int.
- kInt64, // int64.
- kFloat, // float.
- kString, // std::string
+ kInt, // int.
+ kInt64, // int64_t.
+ kFloat, // float.
+ kString, // std::string
kStaticString, // const char*.
- kBool, // bool.
- kId, // Id.
+ kBool, // bool.
+ kId, // Id.
};
- Value(StatsValueName name, int64 value, Type int_type);
+ Value(StatsValueName name, int64_t value, Type int_type);
Value(StatsValueName name, float f);
Value(StatsValueName name, const std::string& value);
Value(StatsValueName name, const char* value);
@@ -281,7 +281,7 @@
// kString and kStaticString too.
bool operator==(const std::string& value) const;
bool operator==(const char* value) const;
- bool operator==(int64 value) const;
+ bool operator==(int64_t value) const;
bool operator==(bool value) const;
bool operator==(float value) const;
bool operator==(const Id& value) const;
@@ -289,7 +289,7 @@
// Getters that allow getting the native value directly.
// The caller must know the type beforehand or else hit a check.
int int_val() const;
- int64 int64_val() const;
+ int64_t int64_val() const;
float float_val() const;
const char* static_string_val() const;
const std::string& string_val() const;
@@ -312,7 +312,7 @@
// TODO(tommi): Use C++ 11 union and make value_ const.
union InternalType {
int int_;
- int64 int64_;
+ int64_t int64_;
float float_;
bool bool_;
std::string* string_;
@@ -355,7 +355,7 @@
void AddString(StatsValueName name, const std::string& value);
void AddString(StatsValueName name, const char* value);
- void AddInt64(StatsValueName name, int64 value);
+ void AddInt64(StatsValueName name, int64_t value);
void AddInt(StatsValueName name, int value);
void AddFloat(StatsValueName name, float value);
void AddBoolean(StatsValueName name, bool value);