aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/protobuf/patches/protoc-dont-use-string-view-in-io.patch
blob: c25d5dc18a193921b44fbbf84001b8de7ed55c26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- a/src/google/protobuf/compiler/importer.cc	(d9b2a82a272102f9099f5bc0cb767279d3e89e3a)
+++ b/src/google/protobuf/compiler/importer.cc	(0dd6d02cb89a06c67e29040284d9239dfe0024b7)
@@ -442,7 +442,7 @@ bool DiskSourceTree::VirtualFileToDiskFile(absl::string_view virtual_file,
   return stream != nullptr;
 }
 
-io::ZeroCopyInputStream* DiskSourceTree::Open(absl::string_view filename) {
+io::ZeroCopyInputStream* DiskSourceTree::Open(const TProtoStringType& filename) {
   return OpenVirtualFile(filename, nullptr);
 }
 
--- a/src/google/protobuf/compiler/importer.h	(d9b2a82a272102f9099f5bc0cb767279d3e89e3a)
+++ b/src/google/protobuf/compiler/importer.h	(0dd6d02cb89a06c67e29040284d9239dfe0024b7)
@@ -245,7 +245,7 @@ class PROTOBUF_EXPORT SourceTree {
   // found.  The caller takes ownership of the returned object.  The filename
   // must be a path relative to the root of the source tree and must not
   // contain "." or ".." components.
-  virtual io::ZeroCopyInputStream* Open(absl::string_view filename) = 0;
+  virtual io::ZeroCopyInputStream* Open(const TProtoStringType& filename) = 0;
 
   // If Open() returns NULL, calling this method immediately will return an
   // description of the error.
@@ -322,7 +322,7 @@ class PROTOBUF_EXPORT DiskSourceTree : public SourceTree {
                              TProtoStringType* disk_file);
 
   // implements SourceTree -------------------------------------------
-  io::ZeroCopyInputStream* Open(absl::string_view filename) override;
+  io::ZeroCopyInputStream* Open(const TProtoStringType& filename) override;
 
   TProtoStringType GetLastErrorMessage() override;