chlange/jeopardy — Issue #3: Compiler-Error in Player constructor
Author: pylight
Created: 2011-12-03 11:07:38+00:00
State: open

In player.cpp (line 31):

Player::Player() :
name(NULL), points(NULL), id(NULL), key(-1)
{

}

I get an error while compiling:

player.cpp:32: Error:call of overloaded ‘QString(NULL)’ is ambiguous.

Since name is a QString, *name("NULL")* or *name()* seem to work.

(version info: g++ (GCC) 4.6.2)