Browse Source

Remove Deprecated: QString::null should not be used

Return a empty QString instead
QGC4.4
Tomaz Canabrava 6 years ago committed by Daniel Agar
parent
commit
a48ee53d46
  1. 4
      src/QtLocationPlugin/QGCMapUrlEngine.cpp

4
src/QtLocationPlugin/QGCMapUrlEngine.cpp

@ -410,7 +410,7 @@ UrlFactory::_getURL(MapType type, int x, int y, int zoom, QNetworkAccessManager* @@ -410,7 +410,7 @@ UrlFactory::_getURL(MapType type, int x, int y, int zoom, QNetworkAccessManager*
server += "mapbox.high-contrast";
break;
default:
return QString::null;
return {};
}
server += QString("/%1/%2/%3.jpg80?access_token=%4").arg(zoom).arg(x).arg(y).arg(mapBoxToken);
return server;
@ -473,7 +473,7 @@ UrlFactory::_getURL(MapType type, int x, int y, int zoom, QNetworkAccessManager* @@ -473,7 +473,7 @@ UrlFactory::_getURL(MapType type, int x, int y, int zoom, QNetworkAccessManager*
qWarning("Unknown map id %d\n", type);
break;
}
return QString::null;
return {};
}
//-----------------------------------------------------------------------------

Loading…
Cancel
Save