From 88451b7c02b4cba0a25eac5803fd546e7ac7d1d2 Mon Sep 17 00:00:00 2001 From: mat007 Date: Sun, 1 Mar 2015 11:28:41 +0000 Subject: [PATCH] Tweaked documentation git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@769 860be788-9bd5-4423-9f1e-828f051e677b --- build/boost/doc/example/reference.cpp | 2 +- build/boost/doc/reference.qbk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/boost/doc/example/reference.cpp b/build/boost/doc/example/reference.cpp index 6dc62b7..1fb520c 100644 --- a/build/boost/doc/example/reference.cpp +++ b/build/boost/doc/example/reference.cpp @@ -96,7 +96,7 @@ class base struct name : base, mock::object // equivalent to using MOCK_BASE_CLASS { - typedef base base_type; // this is required for MOCK_METHOD to work when not using MOCK_BASE_CLASS + typedef base base_type; // this is required for the shortest form of MOCK_METHOD to work when not using MOCK_BASE_CLASS }; //] } diff --git a/build/boost/doc/reference.qbk b/build/boost/doc/reference.qbk index e125015..104154b 100644 --- a/build/boost/doc/reference.qbk +++ b/build/boost/doc/reference.qbk @@ -42,6 +42,8 @@ Synopsis : MOCK_CLASS( name ) // defines a class MOCK_BASE_CLASS( name, base ) // defines a class deriving from a base class +The preferred form for defining a mock class is with using MOCK_CLASS and MOCK_BASE_CLASS, however using a regular struct or class is also perfectly fine. + Example : [class_example_1] @@ -58,8 +60,6 @@ Example : [class_example_4] -The preferred form for defining a mock class is with using MOCK_CLASS and MOCK_BASE_CLASS, however equivalent alternatives exist without the macros. - Example : [class_example_5]