Skip to content

Commit 64824a6

Browse files
pybind11_protobuf authorscopybara-github
pybind11_protobuf authors
authored andcommitted
Use DescriptorDatabase overridden virtual methods to use StringViewArg alias.
PiperOrigin-RevId: 754926003
1 parent f02a2b7 commit 64824a6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

pybind11_protobuf/proto_cast_util.cc

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,10 @@ class PythonDescriptorPoolWrapper {
355355
// the Python DescriptorPool.
356356

357357
// Find a file by file name.
358-
bool FindFileByName(const std::string& filename,
359-
FileDescriptorProto* output) override {
358+
bool FindFileByName(
359+
const std::string& filename
360+
,
361+
FileDescriptorProto* output) override {
360362
try {
361363
auto file = pool_.attr("FindFileByName")(filename);
362364
return CopyToFileDescriptorProto(file, output);
@@ -371,8 +373,10 @@ class PythonDescriptorPoolWrapper {
371373
}
372374

373375
// Find the file that declares the given fully-qualified symbol name.
374-
bool FindFileContainingSymbol(const std::string& symbol_name,
375-
FileDescriptorProto* output) override {
376+
bool FindFileContainingSymbol(
377+
const std::string& symbol_name
378+
,
379+
FileDescriptorProto* output) override {
376380
try {
377381
auto file = pool_.attr("FindFileContainingSymbol")(symbol_name);
378382
return CopyToFileDescriptorProto(file, output);
@@ -389,9 +393,10 @@ class PythonDescriptorPoolWrapper {
389393

390394
// Find the file which defines an extension extending the given message type
391395
// with the given field number.
392-
bool FindFileContainingExtension(const std::string& containing_type,
393-
int field_number,
394-
FileDescriptorProto* output) override {
396+
bool FindFileContainingExtension(
397+
const std::string& containing_type
398+
,
399+
int field_number, FileDescriptorProto* output) override {
395400
try {
396401
auto descriptor = pool_.attr("FindMessageTypeByName")(containing_type);
397402
auto file =

0 commit comments

Comments
 (0)