From 1a2604902ff61e9be95cb19468d05a738b6d890f Mon Sep 17 00:00:00 2001 From: archshift Date: Tue, 12 Aug 2014 04:04:54 -0700 Subject: break_points.cpp: return directly from conditionals --- src/common/break_points.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/common') diff --git a/src/common/break_points.cpp b/src/common/break_points.cpp index 392b8530b..25528b864 100644 --- a/src/common/break_points.cpp +++ b/src/common/break_points.cpp @@ -13,18 +13,14 @@ bool BreakPoints::IsAddressBreakPoint(u32 iAddress) { auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress; }; auto it = std::find_if(m_BreakPoints.begin(), m_BreakPoints.end(), cond); - if (it != m_BreakPoints.end()) - return true; - return false; + return it != m_BreakPoints.end(); } bool BreakPoints::IsTempBreakPoint(u32 iAddress) { auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress && bp.bTemporary; }; auto it = std::find_if(m_BreakPoints.begin(), m_BreakPoints.end(), cond); - if (it != m_BreakPoints.end()) - return true; - return false; + return it != m_BreakPoints.end(); } BreakPoints::TBreakPointsStr BreakPoints::GetStrings() const -- cgit v1.2.3