Skip to content

Commit 1f3ec8c

Browse files
N-Dekkerdzenanz
authored andcommitted
STYLE: Move Observer class from "itkObject.cxx" into unnamed namespace
Hid the internal `Observer` helper class of `itk::Object` by placing it inside an unnamed namespace. Note that it was already marked `ITKCommon_HIDDEN`.
1 parent 2d19f26 commit 1f3ec8c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/Core/Common/src/itkObject.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ itkGetGlobalValueMacro(Object, bool, GlobalWarningDisplay, true);
4040

4141
bool * Object::m_GlobalWarningDisplay;
4242

43+
namespace
44+
{
4345
class ITKCommon_HIDDEN Observer
4446
{
4547
public:
@@ -52,6 +54,7 @@ class ITKCommon_HIDDEN Observer
5254
std::unique_ptr<const EventObject> m_Event;
5355
unsigned long m_Tag;
5456
};
57+
} // namespace
5558

5659
class ITKCommon_HIDDEN SubjectImplementation
5760
{

0 commit comments

Comments
 (0)