aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest-param-test_test.cc
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-16 19:54:05 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-12-16 19:54:05 +0000
commitd56773b492b7b675d5c547baab815289a7815bdd (patch)
tree59322de2099c9879b4a10a298ecf6e6b03a63ace /test/gtest-param-test_test.cc
parent3508784108a38d673a0c7d14c897e7a51b2a7e36 (diff)
downloadgoogletest-d56773b492b7b675d5c547baab815289a7815bdd.tar.gz
googletest-d56773b492b7b675d5c547baab815289a7815bdd.tar.bz2
googletest-d56773b492b7b675d5c547baab815289a7815bdd.zip
Turns on -Wshadow (by Preston Jackson).
Diffstat (limited to 'test/gtest-param-test_test.cc')
-rw-r--r--test/gtest-param-test_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gtest-param-test_test.cc b/test/gtest-param-test_test.cc
index ecb5fdbb..e718ffb4 100644
--- a/test/gtest-param-test_test.cc
+++ b/test/gtest-param-test_test.cc
@@ -205,7 +205,7 @@ TEST(RangeTest, IntRangeWithCustomStepOverUpperBound) {
// copy constructor, operator=(), operator+(), and operator<().
class DogAdder {
public:
- explicit DogAdder(const char* value) : value_(value) {}
+ explicit DogAdder(const char* a_value) : value_(a_value) {}
DogAdder(const DogAdder& other) : value_(other.value_.c_str()) {}
DogAdder operator=(const DogAdder& other) {
@@ -243,7 +243,7 @@ TEST(RangeTest, WorksWithACustomType) {
class IntWrapper {
public:
- explicit IntWrapper(int value) : value_(value) {}
+ explicit IntWrapper(int a_value) : value_(a_value) {}
IntWrapper(const IntWrapper& other) : value_(other.value_) {}
IntWrapper operator=(const IntWrapper& other) {