diff options
author | Tetsuo Kiso <tetsuokiso9@gmail.com> | 2016-01-10 13:23:35 (GMT) |
---|---|---|
committer | Tetsuo Kiso <tetsuokiso9@gmail.com> | 2016-01-10 13:23:35 (GMT) |
commit | 9c5aded8743ebac5c4f76a26e7fface04058bcda (patch) | |
tree | 05b8b61746a987b15d1f49c6a25c8ac1fce6e45b /src/includes_normalize_test.cc | |
parent | c2e810ca4314f112cb65fabd35583b10136faea2 (diff) | |
download | Ninja-9c5aded8743ebac5c4f76a26e7fface04058bcda.zip Ninja-9c5aded8743ebac5c4f76a26e7fface04058bcda.tar.gz Ninja-9c5aded8743ebac5c4f76a26e7fface04058bcda.tar.bz2 |
Remove unnecessary `std::`
Diffstat (limited to 'src/includes_normalize_test.cc')
-rw-r--r-- | src/includes_normalize_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/includes_normalize_test.cc b/src/includes_normalize_test.cc index aba25d0..f18795c 100644 --- a/src/includes_normalize_test.cc +++ b/src/includes_normalize_test.cc @@ -30,15 +30,15 @@ string GetCurDir() { return parts[parts.size() - 1]; } -string NormalizeAndCheckNoError(const std::string& input) { +string NormalizeAndCheckNoError(const string& input) { string result, err; EXPECT_TRUE(IncludesNormalize::Normalize(input.c_str(), NULL, &result, &err)); EXPECT_EQ("", err); return result; } -string NormalizeRelativeAndCheckNoError(const std::string& input, - const std::string& relative_to) { +string NormalizeRelativeAndCheckNoError(const string& input, + const string& relative_to) { string result, err; EXPECT_TRUE(IncludesNormalize::Normalize(input.c_str(), relative_to.c_str(), &result, &err)); @@ -160,8 +160,8 @@ TEST(IncludesNormalize, LongInvalidPath) { "012345678\\" "012345678\\" "0123456789"; - std::string forward_slashes(kExactlyMaxPath); - std::replace(forward_slashes.begin(), forward_slashes.end(), '\\', '/'); + string forward_slashes(kExactlyMaxPath); + replace(forward_slashes.begin(), forward_slashes.end(), '\\', '/'); // Make sure a path that's exactly _MAX_PATH long is canonicalized. EXPECT_EQ(forward_slashes, NormalizeAndCheckNoError(kExactlyMaxPath)); |