summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2023-04-17 13:23:38 -0700
committerCopybara-Service <copybara-worker@google.com>2023-04-17 13:23:38 -0700
commitd25e625364a2078c940da2cb1fcf098aa184fd9f (patch)
treeac7a118f57227a02aa9eabd1c640cd1db8bf9307
parent922e0b7d805f5668b68762552f5cca9b3225acd5 (diff)
parent952560d3ec06eae08347d5e54faa8e3192d41b4d (diff)
downloadgoogletest-git-d25e625364a2078c940da2cb1fcf098aa184fd9f.tar.gz
Merge pull request #4219 from jerylvaz:main
PiperOrigin-RevId: 524932412 Change-Id: Ie70282f7e82cb3b9442bd15bbe49bb9b00e56eb9
-rw-r--r--googlemock/include/gmock/gmock-matchers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/googlemock/include/gmock/gmock-matchers.h b/googlemock/include/gmock/gmock-matchers.h
index 7c5d65cf..fb9f15e8 100644
--- a/googlemock/include/gmock/gmock-matchers.h
+++ b/googlemock/include/gmock/gmock-matchers.h
@@ -5544,7 +5544,8 @@ PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>> ThrowsMessage(
\
private: \
::std::string FormatDescription(bool negation) const { \
- ::std::string gmock_description = (description); \
+ ::std::string gmock_description; \
+ gmock_description = (description); \
if (!gmock_description.empty()) { \
return gmock_description; \
} \