summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-08-12 13:04:54 +0200
committerarchshift <admin@archshift.com>2014-08-12 13:04:54 +0200
commit1a2604902ff61e9be95cb19468d05a738b6d890f (patch)
tree6f0308e227e962cd09673382ca42880fff5548d4 /src/common
parentbreak_points: cleaned up, added `find_if`s (diff)
downloadyuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.tar
yuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.tar.gz
yuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.tar.bz2
yuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.tar.lz
yuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.tar.xz
yuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.tar.zst
yuzu-1a2604902ff61e9be95cb19468d05a738b6d890f.zip
Diffstat (limited to '')
-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