diff options
| author | Nico Weber <thakis@chromium.org> | 2017-05-15 17:07:03 -0400 | 
|---|---|---|
| committer | Nico Weber <thakis@chromium.org> | 2017-05-15 17:53:04 -0400 | 
| commit | 09fd5b3ebfaac10b78bda664ec7f57fac74ef214 (patch) | |
| tree | 89a7afc9280b7e42b96391ea2b42075446503e0f /googlemock/src/gmock-internal-utils.cc | |
| parent | 294f72bc773c92410aa3c5ecdd6cd4a757c3fbf4 (diff) | |
| download | googletest-09fd5b3ebfaac10b78bda664ec7f57fac74ef214.tar.gz googletest-09fd5b3ebfaac10b78bda664ec7f57fac74ef214.tar.bz2 googletest-09fd5b3ebfaac10b78bda664ec7f57fac74ef214.zip | |
Use std::string and ::string explicitly in gtest and gmock code.
This merges a Google-internal change (117235625).
Original CL description:
This CL was created manually in about an hour with sed, a Python script
to find all the places unqualified 'string' was mentioned, and some help
from Emacs to add the "std::" qualifications, plus a few manual tweaks.
Diffstat (limited to 'googlemock/src/gmock-internal-utils.cc')
| -rw-r--r-- | googlemock/src/gmock-internal-utils.cc | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc index fb530801..6464abc2 100644 --- a/googlemock/src/gmock-internal-utils.cc +++ b/googlemock/src/gmock-internal-utils.cc @@ -76,7 +76,7 @@ GTEST_API_ string ConvertIdentifierNameToWords(const char* id_name) {  class GoogleTestFailureReporter : public FailureReporterInterface {   public:    virtual void ReportFailure(FailureType type, const char* file, int line, -                             const string& message) { +                             const std::string& message) {      AssertHelper(type == kFatal ?                   TestPartResult::kFatalFailure :                   TestPartResult::kNonFatalFailure, @@ -128,8 +128,7 @@ GTEST_API_ bool LogIsVisible(LogSeverity severity) {  // stack_frames_to_skip is treated as 0, since we don't know which  // function calls will be inlined by the compiler and need to be  // conservative. -GTEST_API_ void Log(LogSeverity severity, -                    const string& message, +GTEST_API_ void Log(LogSeverity severity, const std::string& message,                      int stack_frames_to_skip) {    if (!LogIsVisible(severity))      return; | 
