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& RegisterOwner(const void* mock_obj) { Mock::Register(mock_obj, this); - return *down_cast*>(this); + return *::testing::internal::down_cast*>(this); } // The following two functions are from UntypedFunctionMockerBase.