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
d86a723e
Commit
d86a723e
authored
Jul 13, 2015
by
kosak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark the default constructor of Matcher<> explicit.
This prevents implicitly constructing a matcher from {}.
parent
9b1a944e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gmock-matchers.h
include/gmock/gmock-matchers.h
+1
-1
No files found.
include/gmock/gmock-matchers.h
View file @
d86a723e
...
@@ -321,7 +321,7 @@ class Matcher : public internal::MatcherBase<T> {
...
@@ -321,7 +321,7 @@ class Matcher : public internal::MatcherBase<T> {
// Constructs a null matcher. Needed for storing Matcher objects in STL
// Constructs a null matcher. Needed for storing Matcher objects in STL
// containers. A default-constructed matcher is not yet initialized. You
// containers. A default-constructed matcher is not yet initialized. You
// cannot use it until a valid value has been assigned to it.
// cannot use it until a valid value has been assigned to it.
Matcher
()
{}
explicit
Matcher
()
{}
// NOLINT
// Constructs a matcher from its implementation.
// Constructs a matcher from its implementation.
explicit
Matcher
(
const
MatcherInterface
<
T
>*
impl
)
explicit
Matcher
(
const
MatcherInterface
<
T
>*
impl
)
...
...
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