From b5be75683388a54dd915695bf35c66464f8817ed Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 3 May 2021 18:06:10 -0600 Subject: [PATCH] Mark members in ParticleAccessor as 'private'. This class is not meant to be derived from, and I *think* that the reason why these members were only 'protected' and not 'private' is to somehow indicate that these are members that 'friend' classes might access. But that is too complicated an interpretation. Let's just make everything 'private', as usual. --- include/deal.II/particles/particle_accessor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/particles/particle_accessor.h b/include/deal.II/particles/particle_accessor.h index cd9d07d163..401ae71ec3 100644 --- a/include/deal.II/particles/particle_accessor.h +++ b/include/deal.II/particles/particle_accessor.h @@ -239,7 +239,7 @@ namespace Particles bool operator==(const ParticleAccessor &other) const; - protected: + private: /** * Construct an invalid accessor. Such an object is not usable. */ @@ -247,7 +247,7 @@ namespace Particles /** * Construct an accessor from a reference to a map and an iterator to the - * map. This constructor is protected so that it can only be accessed by + * map. This constructor is `private` so that it can only be accessed by * friend classes. */ ParticleAccessor( -- 2.39.5