diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-03-05 08:04:01 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2011-03-05 08:04:01 +0000 |
commit | 603533a0a4dcfc2ef33051b9ae8237568a19adc4 (patch) | |
tree | 38e1e22186034693ba63f609100fcd1d4cd6e368 /src/gtest.cc | |
parent | 66ac4909aea5c4dc9c43e6f11518c34049c6bd5e (diff) | |
download | googletest-603533a0a4dcfc2ef33051b9ae8237568a19adc4.tar.gz googletest-603533a0a4dcfc2ef33051b9ae8237568a19adc4.tar.bz2 googletest-603533a0a4dcfc2ef33051b9ae8237568a19adc4.zip |
Fixes compatibility with Borland C++Builder. Original patch by Josh
Kelley. Simplified by Zhanyong Wan.
Diffstat (limited to 'src/gtest.cc')
-rw-r--r-- | src/gtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gtest.cc b/src/gtest.cc index 91057124..3859d5ab 100644 --- a/src/gtest.cc +++ b/src/gtest.cc @@ -4349,7 +4349,7 @@ bool ShouldShard(const char* total_shards_env, // Parses the environment variable var as an Int32. If it is unset, // returns default_val. If it is not an Int32, prints an error // and aborts. -Int32 Int32FromEnvOrDie(const char* const var, Int32 default_val) { +Int32 Int32FromEnvOrDie(const char* var, Int32 default_val) { const char* str_val = posix::GetEnv(var); if (str_val == NULL) { return default_val; |