Index: base/trace_event/estimate_memory_usage.h |
diff --git a/base/trace_event/estimate_memory_usage.h b/base/trace_event/estimate_memory_usage.h |
index 0605e4e611ef364bee0bcce5c744db23d09bf5d1..8698853dc2f320384012f95c1c8d493b3cfdae38 100644 |
--- a/base/trace_event/estimate_memory_usage.h |
+++ b/base/trace_event/estimate_memory_usage.h |
@@ -247,8 +247,8 @@ size_t EstimateMemoryUsage(const std::basic_string<C, T, A>& string) { |
int refcount; |
}; |
// There is one shared empty string, which we estimate to 0. |
- static const char* empty_cstr = nullptr; |
- if (!empty_cstr) empty_cstr = std::string().c_str(); |
+ static const value_type* empty_cstr = nullptr; |
+ if (!empty_cstr) empty_cstr = string_type().c_str(); |
return (string.c_str() == empty_cstr) ? |
0 : |
sizeof(Header) + (string.capacity() + 1) * sizeof(value_type); |