Menu

#3 ambiguous overload error

Fatal
open
nobody
None
5
2001-10-26
2001-10-26
No

Hi

I tried to compile the sorces on my machine and get the
following error:

CSettings.cpp:LINE: ambiguous overload for `QString & =
int'
/progs/devel/qt/include/qstring.h:362: candidates are:
class QString & QString::operator =(const QString &)
/progs/devel/qt/include/qstring.h:364:
class QString & QString::operator =(const char *)
/progs/devel/qt/include/qstring.h:366:
class QString & QString::operator =(const QCString &)
/progs/devel/qt/include/qstring.h:657:
class QString & QString::operator =(QChar)
/progs/devel/qt/include/qstring.h:660:
class QString & QString::operator =(char)

LINEs are:
31, 32, 33, 34, 162, 174, 186, 193, 199, 205, 211, 220,
227,
234, 241, 248, 255, 261

I think you should change
variable = NULL;
to
variable = (const char *)NULL;

characteristics are:

Machine: Ultra Sparc
OS: Solaris 5.7
QT: 2.3.0

thanks, Oli

Discussion


Log in to post a comment.

Auth0 Logo