Commit 719fd2d3 by Abseil Team Committed by Derek Mauro

Googletest export

Update the `DescribeTo` signature in the code example at the Writing New Polymorphic Matchers section in gmock_cook_book. `os` should be a pointer to be consistent with the implementation, which dereference it as `*os`. PiperOrigin-RevId: 370693387
parent 6e8a8623
...@@ -3696,7 +3696,7 @@ class NotNullMatcher { ...@@ -3696,7 +3696,7 @@ class NotNullMatcher {
} }
// Describes the property of a value matching this matcher. // Describes the property of a value matching this matcher.
void DescribeTo(std::ostream& os) const { *os << "is not NULL"; } void DescribeTo(std::ostream* os) const { *os << "is not NULL"; }
// Describes the property of a value NOT matching this matcher. // Describes the property of a value NOT matching this matcher.
void DescribeNegationTo(std::ostream* os) const { *os << "is NULL"; } void DescribeNegationTo(std::ostream* os) const { *os << "is NULL"; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment