I'm presuming that TearOffBand::isUnique() is supposed to override the base class's isUnique(), but it was missing a const...