From 2b1f7cb02a8efe44f475108c0f622d4920d6d282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Mon, 8 Jan 2024 19:08:40 +0100 Subject: [PATCH] Make GetRawMode const MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Klaus Kämpf --- cpp/devices/disk.h | 2 +- cpp/devices/disk_cache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/devices/disk.h b/cpp/devices/disk.h index 4b9e9faf..a69a4662 100644 --- a/cpp/devices/disk.h +++ b/cpp/devices/disk.h @@ -112,7 +112,7 @@ protected: void SetUpCache(off_t, bool = false); void ResizeCache(const string&, bool); - bool GetRawMode() { return (cache?cache->GetRawMode():false); } + bool GetRawMode() const { return (cache?cache->GetRawMode():false); } void SetUpModePages(map>&, int, bool) const override; void AddErrorPage(map>&, bool) const; virtual void AddFormatPage(map>&, bool) const; diff --git a/cpp/devices/disk_cache.h b/cpp/devices/disk_cache.h index b1f299c5..d25eb2f0 100644 --- a/cpp/devices/disk_cache.h +++ b/cpp/devices/disk_cache.h @@ -51,7 +51,7 @@ public: ~DiskCache() = default; void SetRawMode(bool b) { cd_raw = b; } // CD-ROM raw mode setting - bool GetRawMode() { return cd_raw; } + bool GetRawMode() const { return cd_raw; } bool Save(); // Save and release all bool ReadSector(span, uint32_t); // Sector Read