aboutsummaryrefslogtreecommitdiff
path: root/src/processor/binarystream.cc
diff options
context:
space:
mode:
authorivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-06-28 22:46:01 +0000
committerivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-06-28 22:46:01 +0000
commit6de969a3040fa31ba60302c66613d1d2e6f5a730 (patch)
treeaad9de34e00834709440f01cb0f54e315989490e /src/processor/binarystream.cc
parentFix Android build of client library (diff)
downloadbreakpad-6de969a3040fa31ba60302c66613d1d2e6f5a730.tar.xz
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
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@974 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/binarystream.cc')
-rw-r--r--src/processor/binarystream.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/processor/binarystream.cc b/src/processor/binarystream.cc
index c8ee2186..9ed3b702 100644
--- a/src/processor/binarystream.cc
+++ b/src/processor/binarystream.cc
@@ -30,15 +30,16 @@
#include <arpa/inet.h>
#include <limits.h>
+#include <string>
#include <vector>
+#include "common/using_std_string.h"
#include "processor/binarystream.h"
namespace google_breakpad {
-using std::string;
using std::vector;
-binarystream &binarystream::operator>>(std::string &str) {
+binarystream &binarystream::operator>>(string &str) {
u_int16_t length;
*this >> length;
if (eof())
@@ -83,7 +84,7 @@ binarystream &binarystream::operator>>(u_int64_t &u64) {
return *this;
}
-binarystream &binarystream::operator<<(const std::string &str) {
+binarystream &binarystream::operator<<(const string &str) {
if (str.length() > USHRT_MAX) {
// truncate to 16-bit length
*this << static_cast<u_int16_t>(USHRT_MAX);