summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/break_points.cpp8
1 files changed, 2 insertions, 6 deletions
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