StorageManager: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:15:32 -03:00 committed by Andrew Tridgell
parent 7ad6dd858b
commit 45a819c98e
2 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ void StorageAccess::write_uint32(uint16_t loc, uint32_t value) const
/* /*
copy one area to another copy one area to another
*/ */
bool StorageAccess::copy_area(const StorageAccess &source) bool StorageAccess::copy_area(const StorageAccess &source) const
{ {
// we deliberately allow for copies from smaller areas. This // we deliberately allow for copies from smaller areas. This
// allows for a partial backup region for parameters // allows for a partial backup region for parameters

View File

@ -102,7 +102,7 @@ public:
void write_uint32(uint16_t loc, uint32_t value) const; void write_uint32(uint16_t loc, uint32_t value) const;
// copy from one storage area to another // copy from one storage area to another
bool copy_area(const StorageAccess &source); bool copy_area(const StorageAccess &source) const;
private: private:
const StorageManager::StorageType type; const StorageManager::StorageType type;