From 6428a6fbc52773437ad63c1dc3414fad02e6b627 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Thu, 21 Apr 2011 18:14:20 +0200
Subject: [PATCH] use shared_ptr == instead of comparing .get() pointers
 (equivalent and shorter)

---
 libwccl/ops/match/actions/markmatch.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libwccl/ops/match/actions/markmatch.cpp b/libwccl/ops/match/actions/markmatch.cpp
index 27933f1..7970e71 100644
--- a/libwccl/ops/match/actions/markmatch.cpp
+++ b/libwccl/ops/match/actions/markmatch.cpp
@@ -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) {
-- 
GitLab