Commit 538ab4b9 authored by Sandro Knauß's avatar Sandro Knauß Committed by Dennis Nienhüser

Fixing build error

error: conversion from 'QHash<int, QPair<double, double> >::iterator' to non-scalar type 'QHash<int, QPair<double, double> >::const_iterator' requested

REVIEW: 126310
(cherry picked from commit 479c754f)
parent 2f2683a6
......@@ -154,8 +154,8 @@ int main(int argc, char *argv[])
<< " <LineString> \n"
<< " <coordinates> \n";
}
QHash<int, QPair<qreal, qreal> >::const_iterator j = hash.find( starIndexes.at(i).toInt() );
while( j != hash.end() && j.key() == starIndexes.at(i).toInt() ) {
QHash<int, QPair<qreal, qreal> >::const_iterator j = hash.constFind( starIndexes.at(i).toInt() );
while( j != hash.constEnd() && j.key() == starIndexes.at(i).toInt() ) {
out << " " << j.value().first << "," << j.value().second << " \n";
x.append( cos( j.value().first * DEG2RAD ) * cos( j.value().second * DEG2RAD ) );
y.append( sin( j.value().first * DEG2RAD ) * cos( j.value().second * DEG2RAD ) );
......
......@@ -62,8 +62,8 @@ QDir OsmTileClusterRenderer::checkAndCreateDirectory( int const tileX ) const
void OsmTileClusterRenderer::initMapSources()
{
QVector<ReadOnlyMapDefinition>::const_iterator pos = m_mapSourceDefinitions.begin();
QVector<ReadOnlyMapDefinition>::const_iterator const end = m_mapSourceDefinitions.end();
QVector<ReadOnlyMapDefinition>::const_iterator pos = m_mapSourceDefinitions.constBegin();
QVector<ReadOnlyMapDefinition>::const_iterator const end = m_mapSourceDefinitions.constEnd();
for (; pos != end; ++pos )
{
ReadOnlyMapImage * const mapImage = (*pos).createReadOnlyMap();
......
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