From 334afbc71049a19f352deb5cc4617af81693a77b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 27 Aug 2017 18:13:55 -0400 Subject: [PATCH] Removes const from get_status and get_register, as both may now logically mutate the object. --- Components/6845/CRTC6845.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Components/6845/CRTC6845.hpp b/Components/6845/CRTC6845.hpp index 22b95ee4b..b009ea1b5 100644 --- a/Components/6845/CRTC6845.hpp +++ b/Components/6845/CRTC6845.hpp @@ -62,7 +62,7 @@ template class CRTC6845 { selected_register_ = r; } - uint8_t get_status() const { + uint8_t get_status() { switch(personality_) { case UM6845R: return status_ | (bus_state_.vsync ? 0x20 : 0x00); case AMS40226: return get_register(); @@ -71,7 +71,7 @@ template class CRTC6845 { return 0xff; } - uint8_t get_register() const { + uint8_t get_register() { if(selected_register_ == 31) status_ &= ~0x80; if(selected_register_ == 16 || selected_register_ == 17) status_ &= ~0x40;