File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ class PythonDescriptorPoolWrapper {
355
355
// the Python DescriptorPool.
356
356
357
357
// Find a file by file name.
358
- bool FindFileByName (const std::string& filename,
358
+ bool FindFileByName (StringViewArg filename,
359
359
FileDescriptorProto* output) override {
360
360
try {
361
361
auto file = pool_.attr (" FindFileByName" )(filename);
@@ -371,7 +371,7 @@ class PythonDescriptorPoolWrapper {
371
371
}
372
372
373
373
// Find the file that declares the given fully-qualified symbol name.
374
- bool FindFileContainingSymbol (const std::string& symbol_name,
374
+ bool FindFileContainingSymbol (StringViewArg symbol_name,
375
375
FileDescriptorProto* output) override {
376
376
try {
377
377
auto file = pool_.attr (" FindFileContainingSymbol" )(symbol_name);
@@ -389,7 +389,7 @@ class PythonDescriptorPoolWrapper {
389
389
390
390
// Find the file which defines an extension extending the given message type
391
391
// with the given field number.
392
- bool FindFileContainingExtension (const std::string& containing_type,
392
+ bool FindFileContainingExtension (StringViewArg containing_type,
393
393
int field_number,
394
394
FileDescriptorProto* output) override {
395
395
try {
You can’t perform that action at this time.
0 commit comments