Since it is being used as an array size in another file, it is not possible to initialize MAX_WIDTH in a .cxx file.

This commit is contained in:
Berk Geveci 2001-11-30 10:51:30 -05:00
parent 906ebb5547
commit d6e0f7da0c
2 changed files with 6 additions and 8 deletions

View File

@ -11,10 +11,6 @@
#include "cmCursesCacheEntryComposite.h" #include "cmCursesCacheEntryComposite.h"
#include "cmCursesLongMessageForm.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) inline int ctrl(int z)
{ {

View File

@ -31,10 +31,12 @@ public:
// list of current composites. // list of current composites.
bool LookForCacheEntry(const char* key); bool LookForCacheEntry(const char* key);
static const int MIN_WIDTH; enum {
static const int MIN_HEIGHT; MIN_WIDTH = 65,
static const int IDEAL_WIDTH; MIN_HEIGHT = 6,
static const int MAX_WIDTH; IDEAL_WIDTH = 80,
MAX_WIDTH = 512
};
// Description: // Description:
// This method should normally called only by the form. // This method should normally called only by the form.