mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 17:55:29 +01:00
This change allows compiling the google-breakpad code using a global ::string class instead of std::string.
For more details take a look at common/using_std_string.h BUG= Change-Id: I11f1ce697be23e13f12ea8f0468bbe02fa63c967 Reviewed-on: https://chromium-review.googlesource.com/378159 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
3fef603b65
commit
704f41ec90
7 changed files with 34 additions and 31 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "common/using_std_string.h"
|
||||
#include "processor/logging.h"
|
||||
|
||||
#if defined(OS_ANDROID) && !defined(__LP64__)
|
||||
|
|
@ -25,7 +26,7 @@
|
|||
|
||||
namespace google_breakpad {
|
||||
|
||||
bool ParseProcMaps(const std::string& input,
|
||||
bool ParseProcMaps(const string& input,
|
||||
std::vector<MappedMemoryRegion>* regions_out) {
|
||||
std::vector<MappedMemoryRegion> regions;
|
||||
|
||||
|
|
@ -33,8 +34,8 @@ bool ParseProcMaps(const std::string& input,
|
|||
// this point in time.
|
||||
|
||||
// Split the string by newlines.
|
||||
std::vector<std::string> lines;
|
||||
std::string l = "";
|
||||
std::vector<string> lines;
|
||||
string l = "";
|
||||
for (size_t i = 0; i < input.size(); i++) {
|
||||
if (input[i] != '\n' && input[i] != '\r') {
|
||||
l.push_back(input[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue