summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-30 15:51:30 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-30 15:51:30 (GMT)
commitd6e0f7da0cccef416ef2e31b8c5f225d4b429f11 (patch)
treeecc4341edeefefc5835589ab41ad5ce76b384d38 /Source/CursesDialog
parent906ebb5547e93a173017a987d5bceb417503b640 (diff)
downloadCMake-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.cxx4
-rw-r--r--Source/CursesDialog/cmCursesMainForm.h10
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.