Page MenuHomePhabricator

Move mitkCloneMacro into protected class section
Closed, ResolvedPublic

Description

In MITK we have a macro called mitkCloneMacro which inserts a default implementation of ITK's clone pattern, i.e., a method called InternalClone() which in turn calls the copy constructor. However, this method is not meant to be part of the public interface. It should be in the protected section of a class declaration.

Quite prominent classes have this issue, e.g., mitk::Image.

Event Timeline

User kislinsk has pushed new remote branch:

bug-17399-PublicMitkCloneMacros

[6f2351]: Merge branch 'bug-17399-PublicMitkCloneMacros'

Merged commits:

2014-03-12 13:33:09 Stefan Kislinskiy [cd6751]
Moved all mitkCloneMacros into protected class sections.