Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
6428a6fb
Commit
6428a6fb
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
use shared_ptr == instead of comparing .get() pointers (equivalent and shorter)
parent
60d78404
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/ops/match/actions/markmatch.cpp
+2
-2
2 additions, 2 deletions
libwccl/ops/match/actions/markmatch.cpp
with
2 additions
and
2 deletions
libwccl/ops/match/actions/markmatch.cpp
+
2
−
2
View file @
6428a6fb
...
...
@@ -17,9 +17,9 @@ void MarkMatch::execute(const ActionExecContext& context) const
boost
::
shared_ptr
<
const
Match
>
match_from
=
match_from_
->
apply
(
context
);
boost
::
shared_ptr
<
const
Match
>
match_to
=
(
match_from_
.
get
()
==
match_to_
.
get
()
)
?
match_from
:
match_to_
->
apply
(
context
);
(
match_from_
==
match_to_
)
?
match_from
:
match_to_
->
apply
(
context
);
boost
::
shared_ptr
<
const
Match
>
head_match
=
(
match_from_
.
get
()
==
head_match_
.
get
()
)
?
match_from
:
head_match_
->
apply
(
context
);
(
match_from_
==
head_match_
)
?
match_from
:
head_match_
->
apply
(
context
);
int
abs_left
=
match_from
->
first_token
(
as
).
get_value
();
if
(
abs_left
<
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment