From 946bc64fcf473b1bd87c51d4320d9483e270d9d2 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Tue, 31 Mar 2009 00:05:30 +0000 Subject: [PATCH] Fixes an error when compiling with gcc 4.4. --- include/gmock/gmock-spec-builders.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.