diff options
author | Simon Chopin <simon.chopin@canonical.com> | 2022-04-07 10:33:33 -0400 |
---|---|---|
committer | Ileana Dumitrescu <ileanadumi95@protonmail.com> | 2022-04-07 10:33:33 -0400 |
commit | 896b0b6faf17c99706477b678787be3bc5249d75 (patch) | |
tree | fd77fcbd67ce4fa718d756465e9e2bb9907aca7d /lib/backupstore | |
parent | c237196d9c44036b9850031f08295f63a2da4c67 (diff) |
Mark the comparator object as const callabled
This fixes the build when using C++17
Gbp-Pq: Name c++17.diff
Diffstat (limited to 'lib/backupstore')
-rw-r--r-- | lib/backupstore/HousekeepStoreAccount.cpp | 2 | ||||
-rw-r--r-- | lib/backupstore/HousekeepStoreAccount.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/backupstore/HousekeepStoreAccount.cpp b/lib/backupstore/HousekeepStoreAccount.cpp index d5acf62c..78165538 100644 --- a/lib/backupstore/HousekeepStoreAccount.cpp +++ b/lib/backupstore/HousekeepStoreAccount.cpp @@ -561,7 +561,7 @@ bool HousekeepStoreAccount::ScanDirectory(int64_t ObjectID, // Created: 11/12/03 // // -------------------------------------------------------------------------- -bool HousekeepStoreAccount::DelEnCompare::operator()(const HousekeepStoreAccount::DelEn &x, const HousekeepStoreAccount::DelEn &y) +bool HousekeepStoreAccount::DelEnCompare::operator()(const HousekeepStoreAccount::DelEn &x, const HousekeepStoreAccount::DelEn &y) const { // STL spec says this: // A Strict Weak Ordering is a Binary Predicate that compares two objects, returning true if the first precedes the second. diff --git a/lib/backupstore/HousekeepStoreAccount.h b/lib/backupstore/HousekeepStoreAccount.h index ff9e9ffe..908d6ec1 100644 --- a/lib/backupstore/HousekeepStoreAccount.h +++ b/lib/backupstore/HousekeepStoreAccount.h @@ -72,7 +72,7 @@ private: struct DelEnCompare { - bool operator()(const DelEn &x, const DelEn &y); + bool operator()(const DelEn &x, const DelEn &y) const; }; int mAccountID; |