From b3ba4c882ffe49f32839821f8d5712d33d9e957c Mon Sep 17 00:00:00 2001 From: Matt Firth Date: Mon, 11 Dec 2023 16:07:57 +0000 Subject: [PATCH] Make canRead/Write const --- shared/update_check_settings_file.cpp | 4 ++-- shared/update_check_settings_file.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shared/update_check_settings_file.cpp b/shared/update_check_settings_file.cpp index 061296189..ac0e2d8dc 100644 --- a/shared/update_check_settings_file.cpp +++ b/shared/update_check_settings_file.cpp @@ -39,12 +39,12 @@ bool UpdateCheckerSettingsFile::setLastReportedVersion(Version version) } -bool UpdateCheckerSettingsFile::canRead() +const bool UpdateCheckerSettingsFile::canRead() { return loadSettings(); } -bool UpdateCheckerSettingsFile::canWrite() +const bool UpdateCheckerSettingsFile::canWrite() { return saveSettings(); } diff --git a/shared/update_check_settings_file.h b/shared/update_check_settings_file.h index 374223e68..bd47aea62 100644 --- a/shared/update_check_settings_file.h +++ b/shared/update_check_settings_file.h @@ -13,8 +13,8 @@ class UpdateCheckerSettingsFile { Version getLastReportedVersion(); bool setLastReportedVersion(Version version); - bool canRead(); - bool canWrite(); + const bool canRead(); + const bool canWrite(); private: