@@ -43,7 +43,7 @@ PyDescriptorDatabase::~PyDescriptorDatabase() {
4343
4444// Find a file by file name. Fills in in *output and returns true if found.
4545// Otherwise, returns false, leaving the contents of *output undefined.
46- bool PyDescriptorDatabase::FindFileByName (absl::string_view filename,
46+ bool PyDescriptorDatabase::FindFileByName (StringViewArg filename,
4747 google::protobuf::FileDescriptorProto* output) {
4848 ABSL_CHECK (PyGILState_Check ());
4949 const google::protobuf::FileDescriptor* file = standard_pool_.FindFileByName (filename);
@@ -89,7 +89,7 @@ bool PyDescriptorDatabase::FindFileByName(absl::string_view filename,
8989// If found, fills in *output and returns true, otherwise returns false
9090// and leaves *output undefined.
9191bool PyDescriptorDatabase::FindFileContainingSymbol (
92- absl::string_view symbol_name, google::protobuf::FileDescriptorProto* output) {
92+ StringViewArg symbol_name, google::protobuf::FileDescriptorProto* output) {
9393 ABSL_CHECK (PyGILState_Check ());
9494 const google::protobuf::FileDescriptor* file =
9595 standard_pool_.FindFileContainingSymbol (symbol_name);
@@ -135,7 +135,7 @@ bool PyDescriptorDatabase::FindFileContainingSymbol(
135135// otherwise returns false and leaves *output undefined. containing_type
136136// must be a fully-qualified type name.
137137bool PyDescriptorDatabase::FindFileContainingExtension (
138- absl::string_view containing_type, int field_number,
138+ StringViewArg containing_type, int field_number,
139139 google::protobuf::FileDescriptorProto* output) {
140140 ABSL_CHECK (PyGILState_Check ());
141141 PyObject* py_containing_type = PyObject_CallMethod (
0 commit comments