Opened 10 years ago

Closed 10 years ago

#1687 closed defect (fixed)

Compile error

Reported by: richardbrinkman Owned by: Chris Browet
Priority: major Milestone:
Component: merkaartor Version:
Keywords: Cc:

Description

g++ -c -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT -DVERSION="\"0.14\""-DREVISION="\"-svn\"" -DNDEBUG -DQT_NO_DEBUG_OUTPUT -DUSE_WEBKIT -DOSMARENDER -DLIBXML_STATIC -DLIBXSLT_STATIC -DLIBEXSLT_STATIC -D_TTY_POSIX_ -DSHARE_DIR="\"/usr/local/share/merkaartor\"" -DTRANSDIR_MERKAARTOR="\"/home/brinkman/usr/share/merkaartor/translations\"" -DGEOIMAGE -DWORLD_SHP="\"/usr/local/share/merkaartor/world_background.osb\"" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_SVG_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXml -I/usr/include/QtSvg -I/usr/include/QtSvg -I/usr/include/QtWebKit -I/usr/include/QtWebKit -I/usr/include -I../include -I../interfaces -I. -IRender -Iqextserialport -IGPS -INameFinder -I/usr/include/libxml2 -ITools -ITagTemplate -I../tmp -I../tmp -o ../tmp/obj_release/TMSPreferencesDialog.o Preferences/TMSPreferencesDialog.cpp Preferences/TMSPreferencesDialog.cpp: In member function ‘void TMSPreferencesDialog::addServer(const TmsServer?&)’: Preferences/TMSPreferencesDialog.cpp:37: error: conversion from ‘long unsigned int’to ‘const QVariant’ is ambiguous /usr/include/QtCore/qvariant.h:208: note: candidates are: QVariant::QVariant(Qt::GlobalColor?) <near match> /usr/include/QtCore/qvariant.h:179: note: QVariant::QVariant(const char*) <near match> /usr/include/QtCore/qvariant.h:177: note: QVariant::QVariant(double) /usr/include/QtCore/qvariant.h:176: note: QVariant::QVariant(bool) /usr/include/QtCore/qvariant.h:175: note: QVariant::QVariant(qulonglong) /usr/include/QtCore/qvariant.h:174: note: QVariant::QVariant(qlonglong) /usr/include/QtCore/qvariant.h:173: note: QVariant::QVariant(uint) /usr/include/QtCore/qvariant.h:172: note: QVariant::QVariant(int) /usr/include/QtCore/qvariant.h:164: note: QVariant::QVariant(QVariant::Type) <near match> make[1]: * tmp/obj_release/TMSPreferencesDialog.o Error 1

Change History (3)

comment:1 Changed 10 years ago by Chris Browet

Owner: changed from cbro@… to Chris Browet
Status: newassigned

64bits thingy, I guess....

Could you try withe following patch:

modified file 'src/Preferences/TMSPreferencesDialog.cpp'

--- src/Preferences/TMSPreferencesDialog.cpp 2009-04-01 09:25:33 +0000 +++ src/Preferences/TMSPreferencesDialog.cpp 2009-04-02 15:05:43 +0000 @@ -34,7 +34,7 @@

theTmsServers.push_back(srv); if (!srv.deleted) {

QListWidgetItem* item = new QListWidgetItem(srv.TmsName?);

  • item->setData(Qt::UserRole?, theTmsServers.size()-1);

+ item->setData(Qt::UserRole?, (int)(theTmsServers.size()-1));

lvTmsServers->addItem(item);

}

}

comment:2 in reply to:  1 Changed 10 years ago by master_up

This fixes compilation.

comment:3 Changed 10 years ago by richardbrinkman

Resolution: fixed
Status: assignedclosed

(In [14405]) FIX: compile error (fixes #1687)

Note: See TracTickets for help on using tickets.