mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-20 17:59:08 +02:00
Fixed return copies from functions and const ref params
This commit is contained in:
1 parent
8aac45fec0
commit
17ecee1715
15 files changed
+21
-21
No files matched your search
@@ -622,20 +622,20 @@ void CBreakPoints::UpdateCachedMemCheckRanges() {
|
||||
}
|
||||
}
|
||||
|
||||
const std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
|
||||
std::vector<MemCheck> CBreakPoints::GetMemCheckRanges(bool write) {
|
||||
std::lock_guard<std::mutex> guard(memCheckMutex_);
|
||||
if (write)
|
||||
return memCheckRangesWrite_;
|
||||
return memCheckRangesRead_;
|
||||
}
|
||||
|
||||
const std::vector<MemCheck> CBreakPoints::GetMemChecks()
|
||||
std::vector<MemCheck> CBreakPoints::GetMemChecks()
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(memCheckMutex_);
|
||||
return memChecks_;
|
||||
}
|
||||
|
||||
const std::vector<BreakPoint> CBreakPoints::GetBreakpoints()
|
||||
std::vector<BreakPoint> CBreakPoints::GetBreakpoints()
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(breakPointsMutex_);
|
||||
return breakPoints_;
|
||||
|
||||
Reference in new issue
Block a user