소스 검색

memory_manager: Make operator+ const qualified

This doesn't modify member state, so it can be marked as const.
Lioncash 6 년 전
부모
커밋
d12d59f62a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video_core/memory_manager.h

+ 1 - 1
src/video_core/memory_manager.h

@@ -51,7 +51,7 @@ public:
         return static_cast<VAddr>(state) << ShiftBits;
     }
 
-    constexpr PageEntry operator+(u64 offset) {
+    constexpr PageEntry operator+(u64 offset) const {
         // If this is a reserved value, offsets do not apply
         if (!IsValid()) {
             return *this;