diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-30 15:51:30 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-30 15:51:30 (GMT) |
commit | d6e0f7da0cccef416ef2e31b8c5f225d4b429f11 (patch) | |
tree | ecc4341edeefefc5835589ab41ad5ce76b384d38 /Source/CursesDialog | |
parent | 906ebb5547e93a173017a987d5bceb417503b640 (diff) | |
download | CMake-d6e0f7da0cccef416ef2e31b8c5f225d4b429f11.zip CMake-d6e0f7da0cccef416ef2e31b8c5f225d4b429f11.tar.gz CMake-d6e0f7da0cccef416ef2e31b8c5f225d4b429f11.tar.bz2 |
Since it is being used as an array size in another file, it is not possible to initialize MAX_WIDTH in a .cxx file.
Diffstat (limited to 'Source/CursesDialog')
-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. |