Skip to content

Commit

Permalink
STYLE: Move Observer class from "itkObject.cxx" into unnamed namespace
Browse files Browse the repository at this point in the history
Hid the internal `Observer` helper class of `itk::Object` by placing it inside
an unnamed namespace. Note that it was already marked `ITKCommon_HIDDEN`.
  • Loading branch information
N-Dekker authored and dzenanz committed Sep 23, 2022
1 parent 2d19f26 commit 1f3ec8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modules/Core/Common/src/itkObject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ itkGetGlobalValueMacro(Object, bool, GlobalWarningDisplay, true);

bool * Object::m_GlobalWarningDisplay;

namespace
{
class ITKCommon_HIDDEN Observer
{
public:
Expand All @@ -52,6 +54,7 @@ class ITKCommon_HIDDEN Observer
std::unique_ptr<const EventObject> m_Event;
unsigned long m_Tag;
};
} // namespace

class ITKCommon_HIDDEN SubjectImplementation
{
Expand Down

0 comments on commit 1f3ec8c

Please sign in to comment.