Skip to content
Snippets Groups Projects
Commit 6428a6fb authored by ilor's avatar ilor
Browse files

use shared_ptr == instead of comparing .get() pointers (equivalent and shorter)

parent 60d78404
Branches
No related merge requests found
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment