From 124856ab58f37c82f538ac1eba63be14218c590f Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 26 Aug 2014 12:52:38 +0100 Subject: [PATCH] include/CompatSet: more const-ness Signed-off-by: John Spray --- src/include/CompatSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/CompatSet.h b/src/include/CompatSet.h index 583c3dd332586..0019ebdb05956 100644 --- a/src/include/CompatSet.h +++ b/src/include/CompatSet.h @@ -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); } -- 2.39.5