From 7c95d8346e9c62e9d6d7e8202fbcfb34c4404db9 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Thu, 1 Oct 2009 21:56:16 +0000 Subject: Works around a Symbian compiler bug that causes memory leak (by Mika Raento). --- src/gmock-spec-builders.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/gmock-spec-builders.cc b/src/gmock-spec-builders.cc index 72558658..6cc94ddd 100644 --- a/src/gmock-spec-builders.cc +++ b/src/gmock-spec-builders.cc @@ -420,6 +420,14 @@ void Mock::ClearDefaultActionsLocked(void* mock_obj) { // needed by VerifyAndClearExpectationsLocked(). } +Expectation::Expectation() {} + +Expectation::Expectation( + const internal::linked_ptr& expectation_base) + : expectation_base_(expectation_base) {} + +Expectation::~Expectation() {} + // Adds an expectation to a sequence. void Sequence::AddExpectation(const Expectation& expectation) const { if (*last_expectation_ != expectation) { -- cgit v1.2.3