Commit 946bc64f authored by zhanyong.wan's avatar zhanyong.wan
Browse files

Fixes an error when compiling with gcc 4.4.

parent 3fbd2dd0
...@@ -1083,7 +1083,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase { ...@@ -1083,7 +1083,7 @@ class FunctionMockerBase : public UntypedFunctionMockerBase {
// called by the ON_CALL() and EXPECT_CALL() macros. // called by the ON_CALL() and EXPECT_CALL() macros.
FunctionMocker<F>& RegisterOwner(const void* mock_obj) { FunctionMocker<F>& RegisterOwner(const void* mock_obj) {
Mock::Register(mock_obj, this); 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. // The following two functions are from UntypedFunctionMockerBase.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment