Commit 6fe97cca authored by John Esmet's avatar John Esmet

FT-279 Constify the comparison operators for cleaniless (and to please

the osx build)
parent b0443fba
...@@ -136,10 +136,10 @@ public: ...@@ -136,10 +136,10 @@ public:
blockpair(uint64_t o, uint64_t s) : blockpair(uint64_t o, uint64_t s) :
offset(o), size(s) { offset(o), size(s) {
} }
int operator<(const struct blockpair &rhs) { int operator<(const struct blockpair &rhs) const {
return offset < rhs.offset; return offset < rhs.offset;
} }
int operator<(const uint64_t &o) { int operator<(const uint64_t &o) const {
return offset < o; return offset < o;
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment