bool KUserGroup::operator ==(const KUserGroup& group) const { if (isValid() != group.isValid()) return false; if (isValid()) return gid() == group.gid(); else return true; }
bool KUserGroup::operator !=(const KUserGroup& user) const { return (gid() != user.gid()) || (gid() == gid_t(-1)); }
bool KUserGroup::operator ==(const KUserGroup& group) const { return (gid() == group.gid()) && (gid() != gid_t(-1)); }