diff --git a/deps/googletest/include/gtest/internal/gtest-param-util.h b/deps/googletest/include/gtest/internal/gtest-param-util.h index 716779346a01..6e8a187c9d60 100644 --- a/deps/googletest/include/gtest/internal/gtest-param-util.h +++ b/deps/googletest/include/gtest/internal/gtest-param-util.h @@ -601,7 +601,7 @@ class [[nodiscard]] ParameterizedTestSuiteInfo MakeAndRegisterTestInfo( test_suite_name, test_name.c_str(), - nullptr, // No type parameter. + /*type_param=*/nullptr, // No type parameter. PrintToString(param).c_str(), test_info->code_location, GetTestSuiteTypeId(), SuiteApiResolver::GetSetUpCaseOrSuite(file, line), diff --git a/deps/googletest/src/gtest-filepath.cc b/deps/googletest/src/gtest-filepath.cc index 902d8c7f64b7..73a352fff0af 100644 --- a/deps/googletest/src/gtest-filepath.cc +++ b/deps/googletest/src/gtest-filepath.cc @@ -325,7 +325,7 @@ FilePath FilePath::GenerateUniqueFileName(const FilePath& directory, // This does NOT check that a directory (or file) actually exists. bool FilePath::IsDirectory() const { return !pathname_.empty() && - IsPathSeparator(pathname_.c_str()[pathname_.length() - 1]); + IsPathSeparator(pathname_[pathname_.length() - 1]); } // Create directories so that path exists. Returns true if successful or if diff --git a/deps/googletest/src/gtest-port.cc b/deps/googletest/src/gtest-port.cc index 68f77f71247b..e37a8bb1746d 100644 --- a/deps/googletest/src/gtest-port.cc +++ b/deps/googletest/src/gtest-port.cc @@ -1143,7 +1143,7 @@ static std::string FlagToEnvVar(const char* flag) { Message env_var; for (size_t i = 0; i != full_flag.length(); i++) { - env_var << ToUpper(full_flag.c_str()[i]); + env_var << ToUpper(full_flag[i]); } return env_var.GetString();