Index: base/debug/stack_trace_android.cc |
diff --git a/base/debug/stack_trace_android.cc b/base/debug/stack_trace_android.cc |
index c07f34a9957ac536eab7f4f50a4b9ad88898bfdd..98f7ad535ba15a489edc4cfd14ae52edf41e6eb9 100644 |
--- a/base/debug/stack_trace_android.cc |
+++ b/base/debug/stack_trace_android.cc |
@@ -117,10 +117,10 @@ void StackTrace::OutputToStream(std::ostream* os) const { |
const char* path = iter->path.c_str(); |
*os << base::StringPrintf("%s+" FMT_ADDR, path, rel_pc); |
} else { |
- *os << "<unknown>"; |
+ *os << std::string("<unknown>"); |
Nico
2014/10/31 14:30:08
Out of interest, what happens without this? Writin
Fabrice (no longer in Chrome)
2014/10/31 15:45:23
Maybe it works with Clang and not GCC? I noticed t
Nico
2014/10/31 16:10:03
Oh, that's a good point. Works with gcc on my mac
Fabrice (no longer in Chrome)
2014/10/31 17:01:15
Yes, that was it, thanks!
|
} |
- *os << "\n"; |
+ *os << std::string("\n"); |
} |
} |