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 "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)
{

View File

@ -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.