Export of internal Abseil changes
-- ea0cfebeb69b25bec343652bbe1a203f5476c51a by Mark Barolak <mbar@google.com>: Change "std::string" to "string" in places where a "std::" qualification was incorrectly inserted by automation. PiperOrigin-RevId: 300108520 GitOrigin-RevId: ea0cfebeb69b25bec343652bbe1a203f5476c51a Change-Id: Ie3621e63a6ebad67b9fe56a3ebe33e1d50dac602
This commit is contained in:
parent
d936052d32
commit
a877af1f29
68 changed files with 191 additions and 191 deletions
|
|
@ -874,12 +874,12 @@ bool ParseDuration(const std::string& dur_string, Duration* d) {
|
|||
++start;
|
||||
}
|
||||
|
||||
// Can't parse a duration from an empty std::string.
|
||||
// Can't parse a duration from an empty string.
|
||||
if (*start == '\0') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Special case for a std::string of "0".
|
||||
// Special case for a string of "0".
|
||||
if (*start == '0' && *(start + 1) == '\0') {
|
||||
*d = ZeroDuration();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue