aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/map_entry_lite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/map_entry_lite.h')
-rw-r--r--src/google/protobuf/map_entry_lite.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/map_entry_lite.h b/src/google/protobuf/map_entry_lite.h
index 7f8636a9..7c477c56 100644
--- a/src/google/protobuf/map_entry_lite.h
+++ b/src/google/protobuf/map_entry_lite.h
@@ -603,7 +603,7 @@ template <>
struct FromHelper<WireFormatLite::TYPE_STRING> {
static ArenaStringPtr From(const string& x) {
ArenaStringPtr res;
- res.UnsafeArenaSetAllocated(NULL, const_cast<string*>(&x), NULL);
+ *res.UnsafeRawStringPointer() = const_cast<string*>(&x);
return res;
}
};
@@ -611,7 +611,7 @@ template <>
struct FromHelper<WireFormatLite::TYPE_BYTES> {
static ArenaStringPtr From(const string& x) {
ArenaStringPtr res;
- res.UnsafeArenaSetAllocated(NULL, const_cast<string*>(&x), NULL);
+ *res.UnsafeRawStringPointer() = const_cast<string*>(&x);
return res;
}
};