Fixes an error when compiling with gcc 4.4.

pull/511/head
zhanyong.wan 16 years ago
parent 3fbd2dd020
commit 946bc64fcf
  1. 2
      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.

Loading…
Cancel
Save