diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-04-05 20:30:46 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-04-05 20:30:48 -0400 |
| commit | c13fbe6a41a8e496e6b7de38a15669344e9cab7a (patch) | |
| tree | 51933c4b7a07f8cb1a7d1ee1c5bb1bc3cfaf42f4 /src/video_core/memory_manager.h | |
| parent | 76ef6e5c2be2d3d31fdc7bf16c499c1f257b9e97 (diff) | |
video_core/memory_manager: Make Read() a const qualified member function
Given this doesn't actually alter internal state, this can be made a
const member function.
Diffstat (limited to 'src/video_core/memory_manager.h')
| -rw-r--r-- | src/video_core/memory_manager.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/memory_manager.h b/src/video_core/memory_manager.h index 273d538b8..178e2f655 100644 --- a/src/video_core/memory_manager.h +++ b/src/video_core/memory_manager.h @@ -53,7 +53,7 @@ public: std::optional<VAddr> GpuToCpuAddress(GPUVAddr addr) const; template <typename T> - T Read(GPUVAddr addr); + T Read(GPUVAddr addr) const; template <typename T> void Write(GPUVAddr addr, T data); |
