mirror of
https://github.com/google/googletest.git
synced 2026-10-28 18:07:18 +08:00
Automated Code Change
PiperOrigin-RevId: 990949949 Change-Id: I5dcfface3b418684c8c7e16ccdd9b2bf60e25b19
This commit is contained in:
parent
3ca3771f9c
commit
bc548fd273
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user