Fixed a problem with ambiguous constructors in the fgText class.
This commit is contained in:
parent
11a964d830
commit
8a240d043d
1 changed files with 8 additions and 1 deletions
|
@ -236,10 +236,17 @@ private:
|
|||
char msg[32];
|
||||
float x, y;
|
||||
public:
|
||||
// note to Norman from Curt. You had two constructors here that
|
||||
// have defaults values for all parameters. So, if a constructor
|
||||
// is called with no parameters, which is chosen? For the second,
|
||||
// I've removed the default value for x which fixes the problem.
|
||||
// However, it might be best to just delete the second redundant
|
||||
// constructor, and fix the constructor variable ordering
|
||||
// throughout the rest of the code.
|
||||
fgText( char *c = NULL, float x = 0, float y =0 )
|
||||
: x(x), y(y) {strncpy(msg,c,32-1);}
|
||||
|
||||
fgText( float x = 0, float y = 0, char *c = NULL )
|
||||
fgText( float x, float y = 0, char *c = NULL )
|
||||
: x(x), y(y) {strncpy(msg,c,32-1);}
|
||||
|
||||
fgText( const fgText & image )
|
||||
|
|
Loading…
Reference in a new issue