diff --git a/src/video_core/gpu_debugger.h b/src/video_core/gpu_debugger.h index b177ecd52..5d909beba 100644 --- a/src/video_core/gpu_debugger.h +++ b/src/video_core/gpu_debugger.h @@ -20,7 +20,7 @@ public: // A vector of commands represented by their raw byte sequence struct PicaCommand : public std::vector { - Pica::CommandHeader& GetHeader() const + const Pica::CommandHeader& GetHeader() const { const u32& val = at(1); return *(Pica::CommandHeader*)&val; @@ -64,7 +64,7 @@ public: } protected: - GraphicsDebugger* GetDebugger() const + const GraphicsDebugger* GetDebugger() const { return observed; } @@ -108,7 +108,7 @@ public: } auto obj = std::pair(address, cmdlist); - auto it = find(command_lists.begin(), command_lists.end(), obj); + auto it = std::find(command_lists.begin(), command_lists.end(), obj); bool is_new = (it == command_lists.end()); if (is_new) command_lists.push_back(obj);