Commit b40c96b8 authored by Dennis Nienhüser's avatar Dennis Nienhüser

Compile (follow-up to 06658a44)

parent 06658a44
......@@ -327,7 +327,7 @@ void TestGeoDataCoordinates::testOperatorAssignment()
*/
void TestGeoDataCoordinates::testDetail()
{
const int detailnumber = 15;
const quint8 detailnumber = 15;
GeoDataCoordinates coordinates1;
coordinates1.setDetail(detailnumber);
......
......@@ -50,7 +50,7 @@ class TestGeoDataCopy : public QObject
{
Q_OBJECT
private:
void testCoordinate( GeoDataCoordinates coord, qreal alt, int detail, QString coordtest );
void testCoordinate(GeoDataCoordinates coord, qreal alt, quint8 detail, QString coordtest );
private Q_SLOTS:
void initTestCase();
// misc.:
......@@ -87,7 +87,7 @@ class TestGeoDataCopy : public QObject
GeoDataPoint point3;
};
void TestGeoDataCopy::testCoordinate( GeoDataCoordinates coord, qreal alt, int detail, QString coordtest )
void TestGeoDataCopy::testCoordinate( GeoDataCoordinates coord, qreal alt, quint8 detail, QString coordtest )
{
QCOMPARE(coord.altitude(), alt);
QCOMPARE(coord.detail(), detail);
......@@ -156,8 +156,8 @@ void TestGeoDataCopy::copyPoint()
point = GeoDataPoint( GeoDataCoordinates(13.7107, 51.0235, 123.4, GeoDataCoordinates::Degree, 17) );
point.setExtrude(false);
QCOMPARE(other.coordinates().detail(), 2);
QCOMPARE(point.coordinates().detail(), 17);
QCOMPARE(other.coordinates().detail(), quint8(2));
QCOMPARE(point.coordinates().detail(), quint8(17));
QCOMPARE(other.extrude(), true);
QCOMPARE(point.extrude(), false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment