diff options
author | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-10-01 21:56:16 +0000 |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@8415998a-534a-0410-bf83-d39667b30386> | 2009-10-01 21:56:16 +0000 |
commit | 7c95d8346e9c62e9d6d7e8202fbcfb34c4404db9 (patch) | |
tree | 4208fb4a76d605c834925493e87a3522d7e60682 /src | |
parent | 79643f51ed835bc8c897fb429a9d77a41701d7ad (diff) | |
download | googletest-7c95d8346e9c62e9d6d7e8202fbcfb34c4404db9.tar.gz googletest-7c95d8346e9c62e9d6d7e8202fbcfb34c4404db9.tar.bz2 googletest-7c95d8346e9c62e9d6d7e8202fbcfb34c4404db9.zip |
Works around a Symbian compiler bug that causes memory leak (by Mika Raento).
Diffstat (limited to 'src')
-rw-r--r-- | src/gmock-spec-builders.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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<internal::ExpectationBase>& 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) { |