Skip to content

Commit

Permalink
STYLE: Make protected Object::SubjectImplementation members private
Browse files Browse the repository at this point in the history
The internal helper class `SubjectImplementation` is not designed as a base
class, so in general, its members should be either `private` or `public`.
  • Loading branch information
N-Dekker authored and dzenanz committed Sep 23, 2022
1 parent 4c0526e commit 2a18aab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Modules/Core/Common/src/itkObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ITKCommon_HIDDEN Object::SubjectImplementation

bool m_ListModified{ false };

protected:
private:
// RAII of ListModified state to ensure exception safety
struct SaveRestoreListModified
{
Expand All @@ -111,7 +111,6 @@ class ITKCommon_HIDDEN Object::SubjectImplementation
void
InvokeEventRecursion(const EventObject & event, TObject * self, std::list<Observer>::reverse_iterator & i);

private:
std::list<Observer> m_Observers;
unsigned long m_Count;
};
Expand Down

0 comments on commit 2a18aab

Please sign in to comment.