nSharedGroups doesn't need to be a class member

And also mark some variables as const to make it easier to see they don't change
2 files changed