Fixes an error when compiling with gcc 4.4.

This commit is contained in:
zhanyong.wan 2009-03-31 00:05:30 +00:00
parent 3fbd2dd020
commit 946bc64fcf

View File

@ -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.