Skip to content

Commit

Permalink
Make canRead/Write const
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Dec 14, 2023
1 parent d29a2aa commit b3ba4c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shared/update_check_settings_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 2 additions & 2 deletions shared/update_check_settings_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UpdateCheckerSettingsFile {
Version getLastReportedVersion();
bool setLastReportedVersion(Version version);

bool canRead();
bool canWrite();
const bool canRead();
const bool canWrite();

private:

Expand Down

0 comments on commit b3ba4c8

Please sign in to comment.