diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.cxx | 4 | ||||
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.h | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx index 1f363a5..d8ed574 100644 --- a/Source/CursesDialog/cmCursesMainForm.cxx +++ b/Source/CursesDialog/cmCursesMainForm.cxx @@ -11,10 +11,6 @@ #include "cmCursesCacheEntryComposite.h" #include "cmCursesLongMessageForm.h" -const int cmCursesMainForm::MIN_WIDTH = 65; -const int cmCursesMainForm::MIN_HEIGHT = 6; -const int cmCursesMainForm::IDEAL_WIDTH = 80; -const int cmCursesMainForm::MAX_WIDTH = 512; inline int ctrl(int z) { diff --git a/Source/CursesDialog/cmCursesMainForm.h b/Source/CursesDialog/cmCursesMainForm.h index 38be712..aa6c0ed 100644 --- a/Source/CursesDialog/cmCursesMainForm.h +++ b/Source/CursesDialog/cmCursesMainForm.h @@ -31,10 +31,12 @@ public: // list of current composites. bool LookForCacheEntry(const char* key); - static const int MIN_WIDTH; - static const int MIN_HEIGHT; - static const int IDEAL_WIDTH; - static const int MAX_WIDTH; + enum { + MIN_WIDTH = 65, + MIN_HEIGHT = 6, + IDEAL_WIDTH = 80, + MAX_WIDTH = 512 + }; // Description: // This method should normally called only by the form. |