diff options
author | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-09-01 19:10:50 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-09-01 19:10:50 +0000 |
commit | 46642857b18abae8537317f944569ef552e2d301 (patch) | |
tree | e827e00739e6544f9ac6dafd392d35f91f81b41f /src/gmock.cc | |
parent | 2b43a9ecd16edc1ec55429967e0f2de1aaf8e8bb (diff) | |
download | googletest-46642857b18abae8537317f944569ef552e2d301.tar.gz googletest-46642857b18abae8537317f944569ef552e2d301.tar.bz2 googletest-46642857b18abae8537317f944569ef552e2d301.zip |
Depends on gtest r300, which allows String to contain NUL.
Diffstat (limited to 'src/gmock.cc')
-rw-r--r-- | src/gmock.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmock.cc b/src/gmock.cc index caafb015..f487265d 100644 --- a/src/gmock.cc +++ b/src/gmock.cc @@ -63,7 +63,7 @@ static const char* ParseGoogleMockFlagValue(const char* str, // The flag must start with "--gmock_". const String flag_str = String::Format("--gmock_%s", flag); - const size_t flag_len = flag_str.GetLength(); + const size_t flag_len = flag_str.length(); if (strncmp(str, flag_str.c_str(), flag_len) != 0) return NULL; // Skips the flag name. |