Automated Code Change

PiperOrigin-RevId: 990949949
Change-Id: I5dcfface3b418684c8c7e16ccdd9b2bf60e25b19
This commit is contained in:
Abseil Team 2026-09-30 06:29:59 -07:00 committed by Copybara-Service
parent 3ca3771f9c
commit bc548fd273
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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();