mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-31 09:05:14 +01:00
Silenced some more clazy warnings
This commit is contained in:
parent
542b3e920e
commit
789606cf86
@ -148,9 +148,9 @@ qreal DEM::elevation(const Coordinates &c)
|
|||||||
|
|
||||||
QList<Area> DEM::tiles()
|
QList<Area> DEM::tiles()
|
||||||
{
|
{
|
||||||
|
static const QRegularExpression re("([NS])([0-9]{2})([EW])([0-9]{3})");
|
||||||
QDir dir(_dir);
|
QDir dir(_dir);
|
||||||
QFileInfoList files(dir.entryInfoList(QDir::Files | QDir::Readable));
|
QFileInfoList files(dir.entryInfoList(QDir::Files | QDir::Readable));
|
||||||
QRegularExpression re("([NS])([0-9]{2})([EW])([0-9]{3})");
|
|
||||||
QLocale l(QLocale::system());
|
QLocale l(QLocale::system());
|
||||||
QList<Area> list;
|
QList<Area> list;
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ static Coordinates parseUTM(const QString &zone, const QString &easting,
|
|||||||
bool GPSDumpParser::parse(QFile *file, QList<TrackData> &tracks,
|
bool GPSDumpParser::parse(QFile *file, QList<TrackData> &tracks,
|
||||||
QList<RouteData> &routes, QList<Area> &polygons, QVector<Waypoint> &waypoints)
|
QList<RouteData> &routes, QList<Area> &polygons, QVector<Waypoint> &waypoints)
|
||||||
{
|
{
|
||||||
|
static const QRegularExpression dm("[ ]{2,}");
|
||||||
Q_UNUSED(tracks);
|
Q_UNUSED(tracks);
|
||||||
Q_UNUSED(routes);
|
Q_UNUSED(routes);
|
||||||
Q_UNUSED(polygons);
|
Q_UNUSED(polygons);
|
||||||
@ -95,7 +96,6 @@ bool GPSDumpParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
_errorLine = 1;
|
_errorLine = 1;
|
||||||
_errorString.clear();
|
_errorString.clear();
|
||||||
Type type = Unknown;
|
Type type = Unknown;
|
||||||
QRegularExpression dm("[ ]{2,}");
|
|
||||||
|
|
||||||
while (!file->atEnd()) {
|
while (!file->atEnd()) {
|
||||||
QByteArray ba(file->readLine(4096).trimmed());
|
QByteArray ba(file->readLine(4096).trimmed());
|
||||||
|
@ -262,7 +262,7 @@ bool OziMap::setImageInfo(const QString &path)
|
|||||||
|
|
||||||
bool OziMap::setTileInfo(const QStringList &tiles, const QString &path)
|
bool OziMap::setTileInfo(const QStringList &tiles, const QString &path)
|
||||||
{
|
{
|
||||||
static QRegularExpression rx("_[0-9]+_[0-9]+\\.");
|
static const QRegularExpression rx("_[0-9]+_[0-9]+\\.");
|
||||||
|
|
||||||
if (!_map.size.isValid()) {
|
if (!_map.size.isValid()) {
|
||||||
_errorString = "Missing total image size (IWH)";
|
_errorString = "Missing total image size (IWH)";
|
||||||
|
@ -97,10 +97,10 @@ static Projection parseProjection(const QString &str, const GCS &gcs)
|
|||||||
|
|
||||||
bool RMap::parseIMP(const QByteArray &data)
|
bool RMap::parseIMP(const QByteArray &data)
|
||||||
{
|
{
|
||||||
QStringList lines = QString(data).split("\r\n");
|
static const QRegularExpression re("^P[0-9]+=");
|
||||||
|
QStringList lines(QString(data).split("\r\n"));
|
||||||
QVector<CalibrationPoint> calibrationPoints;
|
QVector<CalibrationPoint> calibrationPoints;
|
||||||
QString projection, datum;
|
QString projection, datum;
|
||||||
QRegularExpression re("^P[0-9]+=");
|
|
||||||
|
|
||||||
for (int i = 0; i < lines.count(); i++) {
|
for (int i = 0; i < lines.count(); i++) {
|
||||||
const QString &line = lines.at(i);
|
const QString &line = lines.at(i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user