]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/CompatSet: more const-ness
authorJohn Spray <john.spray@redhat.com>
Tue, 26 Aug 2014 11:52:38 +0000 (12:52 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 2 Sep 2014 13:06:24 +0000 (14:06 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
src/include/CompatSet.h

index 583c3dd3325866e95e42e2c6b4891b253710cb29..0019ebdb05956586b0c248c223ea43ac8c150ff4 100644 (file)
@@ -120,13 +120,13 @@ struct CompatSet {
 
   /* does this filesystem implementation have the
      features required to read the other? */
-  bool readable(CompatSet& other) {
+  bool readable(CompatSet const& other) const {
     return !((other.incompat.mask ^ incompat.mask) & other.incompat.mask);
   }
 
   /* does this filesystem implementation have the
      features required to write the other? */
-  bool writeable(CompatSet& other) {
+  bool writeable(CompatSet const& other) const {
     return readable(other) &&
       !((other.ro_compat.mask ^ ro_compat.mask) & other.ro_compat.mask);
   }