#80 TOra fails to build with Qt 4.7

closed-fixed
nobody
None
5
2010-06-30
2010-06-27
Felix Geyer
No

QString shouldn't be initalized with 0. The default constructor creates a null string.
Qt 4.7 added a QString(const QChar*) constructor so calling QString(0) is ambiguous.

/build/user-tora_2.1.2-1-i386-wxPIYf/tora-2.1.2/src/tobrowserbasewidget.cpp: In constructor 'toBrowserBaseWidget::toBrowserBaseWidget(QWidget*)':
/build/user-tora_2.1.2-1-i386-wxPIYf/tora-2.1.2/src/tobrowserbasewidget.cpp:52: error: call of overloaded 'QString(int)' is ambiguous
/usr/include/qt4/QtCore/qstring.h:428: note: candidates are: QString::QString(const QByteArray&)
/usr/include/qt4/QtCore/qstring.h:426: note: QString::QString(const char*)
/usr/include/qt4/QtCore/qstring.h:727: note: QString::QString(const QString&)
/usr/include/qt4/QtCore/qstring.h:106: note: QString::QString(QChar)
/usr/include/qt4/QtCore/qstring.h:105: note: QString::QString(const QChar*)
/build/user-tora_2.1.2-1-i386-wxPIYf/tora-2.1.2/src/tobrowserbasewidget.cpp:52: error: call of overloaded 'QString(int)' is ambiguous
/usr/include/qt4/QtCore/qstring.h:428: note: candidates are: QString::QString(const QByteArray&)
/usr/include/qt4/QtCore/qstring.h:426: note: QString::QString(const char*)
/usr/include/qt4/QtCore/qstring.h:727: note: QString::QString(const QString&)
/usr/include/qt4/QtCore/qstring.h:106: note: QString::QString(QChar)
/usr/include/qt4/QtCore/qstring.h:105: note: QString::QString(const QChar*)

Discussion

  • Petr Vaněk

    Petr Vaněk - 2010-06-30
    • status: open --> closed-fixed
     
  • Petr Vaněk

    Petr Vaněk - 2010-06-30

    thanks for it. Committed revision 3604. "patch #3022103: TOra fails to build with Qt 4.7. by Felix Geyer"

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks