Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
e2fc3a9c
Commit
e2fc3a9c
authored
Oct 30, 2019
by
Abseil Team
Committed by
vslashg
Oct 31, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Googletest export
Tolerate std::string's explicit copy construction from std::string_view. PiperOrigin-RevId: 277583394
parent
0a034808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
gmock-matchers.h
googlemock/include/gmock/gmock-matchers.h
+1
-2
No files found.
googlemock/include/gmock/gmock-matchers.h
View file @
e2fc3a9c
...
@@ -758,8 +758,7 @@ class HasSubstrMatcher {
...
@@ -758,8 +758,7 @@ class HasSubstrMatcher {
template
<
typename
MatcheeStringType
>
template
<
typename
MatcheeStringType
>
bool
MatchAndExplain
(
const
MatcheeStringType
&
s
,
bool
MatchAndExplain
(
const
MatcheeStringType
&
s
,
MatchResultListener
*
/* listener */
)
const
{
MatchResultListener
*
/* listener */
)
const
{
const
StringType
&
s2
(
s
);
return
StringType
(
s
).
find
(
substring_
)
!=
StringType
::
npos
;
return
s2
.
find
(
substring_
)
!=
StringType
::
npos
;
}
}
// Describes what this matcher matches.
// Describes what this matcher matches.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment