From 7b892418aaf66db7c0dadd26755ba655148d8dc0 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Thu, 11 Apr 2019 10:58:43 +0200 Subject: [PATCH 1/2] Adapt section title after prior extension to protected methods --- doc/limitations.qbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/limitations.qbk b/doc/limitations.qbk index ece78fd..46926f0 100644 --- a/doc/limitations.qbk +++ b/doc/limitations.qbk @@ -112,7 +112,7 @@ A workaround would be to add the signature to MOCK_METHOD : [endsect] -[section Private virtual methods cannot be mocked without specifying the signature] +[section Protected and private virtual methods cannot be mocked without specifying the signature] Given : From c22f19801b512a9594acdd7c1ba3242938400b31 Mon Sep 17 00:00:00 2001 From: Simon Giesecke Date: Thu, 11 Apr 2019 11:00:37 +0200 Subject: [PATCH 2/2] Made example method actually protected --- doc/example/limitations_protected_private_method.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/example/limitations_protected_private_method.cpp b/doc/example/limitations_protected_private_method.cpp index 327cf2a..a3a23f3 100644 --- a/doc/example/limitations_protected_private_method.cpp +++ b/doc/example/limitations_protected_private_method.cpp @@ -15,7 +15,7 @@ namespace //[ limitations_protected_private_method_problem class base { - private: + protected: virtual void method_1() = 0; private: virtual void method_2() = 0;