aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/protobuf/patches/z_05_use_ref_count.patch
blob: 391af0669cd99d1e07dabe66087fdad916edd6bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- contrib/libs/protobuf/src/google/protobuf/arenastring.cc   (5de6c47c971aa5c751f17043b8ddf45bcc6daee0)
+++ contrib/libs/protobuf/src/google/protobuf/arenastring.cc   (c7e1b2fc457f6c68ed50780be734651758d4f548)
@@ -96,9 +96,9 @@ class ScopedCheckPtrInvariants {
 #endif  // NDEBUG || !GOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL

 // Creates a heap allocated TProtoStringType value.
-inline TaggedStringPtr CreateString(absl::string_view value) {
+inline TaggedStringPtr CreateString(const TProtoStringType& value) {
   TaggedStringPtr res;
-  res.SetAllocated(new TProtoStringType(value.data(), value.length()));
+  res.SetAllocated(new TProtoStringType(value));
   return res;
 }