Slick EDIT V3.3 User Manual

Page 228

Advertising
background image

Class members are pulled up one level at a time. Constructors and destructors cannot be moved. Any de-
pendencies that are not part of the original class will not be moved to the new base class, and might not
be accessible, thereby causing compilation errors. This occurs, for example, when a function being
moved uses a static global variable that is defined in the original class' .cpp file when the definitions are
moved to a different .cpp file.

Figure 6.37. C++ Refactoring: Pull Up - Selecting Members to Move

C++ Refactoring

206

Advertising