X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=c%2B%2B%2Fcursesf.h;h=1119f5cbc70a3fa698a0af5c39b9e66c4a00afac;hp=d90a852081dfa10d943148d75832f620811214ba;hb=refs%2Ftags%2Fv5.0;hpb=661078ddbde3ce0f3b06e95642fbb9b5fef7dca1 diff --git a/c++/cursesf.h b/c++/cursesf.h index d90a8520..1119f5cb 100644 --- a/c++/cursesf.h +++ b/c++/cursesf.h @@ -28,10 +28,10 @@ ****************************************************************************/ /**************************************************************************** - * Author: Juergen Pfeifer 1997 * + * Author: Juergen Pfeifer 1997 * ****************************************************************************/ -// $Id: cursesf.h,v 1.6 1998/02/11 12:13:41 tom Exp $ +// $Id: cursesf.h,v 1.10 1999/05/16 17:31:42 juergen Exp $ #ifndef _CURSESF_H #define _CURSESF_H @@ -255,7 +255,7 @@ public: // Return the index of the field in the field array of a form // or -1 if the field is not associated to a form - inline int index() const { + inline int (index)() const { return ::field_index(field); } @@ -712,7 +712,7 @@ public: Regular_Expression_Field(const char *expr) : NCursesFieldType(TYPE_REGEXP) { regex = new char[1+::strlen(expr)]; - strcpy(regex,expr); + (strcpy)(regex,expr); } ~Regular_Expression_Field() {