aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-12-07 21:55:51 -0300
committerGitHub <noreply@github.com>2020-12-07 21:55:51 -0300
commit3415890dd5c6539a7c7b6e02bf7ce5df4533133c (patch)
treed8293d5f1997e2b59d79d5bfcc629b736565ac13 /src/video_core/buffer_cache
parent4bd74ed4c744e46d69ef07e25f90c90908904850 (diff)
parent09fa1d6a739b18f6a8f3d83065ff9aebd6e4bc8d (diff)
Merge pull request #5164 from lioncash/contains
video_core: Make use of ordered container contains() where applicable
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index e7edd733f..38961f3fd 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -545,7 +545,7 @@ private:
bool IsRegionWritten(VAddr start, VAddr end) const {
const u64 page_end = end >> WRITE_PAGE_BIT;
for (u64 page_start = start >> WRITE_PAGE_BIT; page_start <= page_end; ++page_start) {
- if (written_pages.count(page_start) > 0) {
+ if (written_pages.contains(page_start)) {
return true;
}
}