summaryrefslogtreecommitdiffstats
path: root/googletest/include
diff options
context:
space:
mode:
authorBaruch <bmburstein@gmail.com>2022-08-25 07:55:49 (GMT)
committerGitHub <noreply@github.com>2022-08-25 07:55:49 (GMT)
commitdd969ed5fed68a518027ea1655579fa8768f3aae (patch)
tree57545d600884b7ca7c7e3edebfc07cfea175ccd6 /googletest/include
parent3280a930bf3f2fdb77da9a6cdf5866ef22708ff1 (diff)
parent25cc5777a17820a6339204a3552aa1dd5e428669 (diff)
downloadgoogletest-dd969ed5fed68a518027ea1655579fa8768f3aae.zip
googletest-dd969ed5fed68a518027ea1655579fa8768f3aae.tar.gz
googletest-dd969ed5fed68a518027ea1655579fa8768f3aae.tar.bz2
Merge branch 'google:main' into custom_type_combine
Diffstat (limited to 'googletest/include')
-rw-r--r--googletest/include/gtest/gtest-matchers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/include/gtest/gtest-matchers.h b/googletest/include/gtest/gtest-matchers.h
index bffa00c..4a60b0d 100644
--- a/googletest/include/gtest/gtest-matchers.h
+++ b/googletest/include/gtest/gtest-matchers.h
@@ -842,7 +842,7 @@ class MatchesRegexMatcher {
template <class MatcheeStringType>
bool MatchAndExplain(const MatcheeStringType& s,
MatchResultListener* /* listener */) const {
- const std::string& s2(s);
+ const std::string s2(s);
return full_match_ ? RE::FullMatch(s2, *regex_)
: RE::PartialMatch(s2, *regex_);
}