From: Wolfgang Bangerth Date: Tue, 4 May 2021 00:06:10 +0000 (-0600) Subject: Mark members in ParticleAccessor as 'private'. X-Git-Tag: v9.3.0-rc1~131^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12131%2Fhead;p=dealii.git 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. --- 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(