aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-03-31 00:05:30 +0000
committerzhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386>2009-03-31 00:05:30 +0000
commit946bc64fcf473b1bd87c51d4320d9483e270d9d2 (patch)
tree7fc869ea5837bda5374cc01d835ea4bb8659b70a
parent3fbd2dd020819fcfd7cef2aa6a17fad73c41a0ee (diff)
downloadgoogletest-946bc64fcf473b1bd87c51d4320d9483e270d9d2.tar.gz
googletest-946bc64fcf473b1bd87c51d4320d9483e270d9d2.tar.bz2
googletest-946bc64fcf473b1bd87c51d4320d9483e270d9d2.zip
Fixes an error when compiling with gcc 4.4.
-rw-r--r--include/gmock/gmock-spec-builders.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gmock/gmock-spec-builders.h b/include/gmock/gmock-spec-builders.h
index 77b50f80..3b4c0853 100644
--- a/include/gmock/gmock-spec-builders.h
+++ b/include/gmock/gmock-spec-builders.h
@@ -1083,7 +1083,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
// called by the ON_CALL() and EXPECT_CALL() macros.
FunctionMocker<F>& RegisterOwner(const void* mock_obj) {
Mock::Register(mock_obj, this);
- return *down_cast<FunctionMocker<F>*>(this);
+ return *::testing::internal::down_cast<FunctionMocker<F>*>(this);
}
// The following two functions are from UntypedFunctionMockerBase.