1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Make Coverity happy

This commit is contained in:
Martin Tůma 2018-07-10 08:58:37 +02:00
parent dd9e42ad27
commit 5547cf668e
3 changed files with 5 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#include "gearratiographitem.h" #include "gearratiographitem.h"
GearRatioGraphItem::GearRatioGraphItem(const Graph &graph, GraphType type, GearRatioGraphItem::GearRatioGraphItem(const Graph &graph, GraphType type,
QGraphicsItem *parent) : GraphItem(graph, type, parent) QGraphicsItem *parent) : GraphItem(graph, type, parent), _top(NAN)
{ {
qreal val = NAN; qreal val = NAN;

View File

@ -102,7 +102,8 @@ bool WMSMap::loadWMS()
} }
WMSMap::WMSMap(const QString &name, const WMS::Setup &setup, QObject *parent) WMSMap::WMSMap(const QString &name, const WMS::Setup &setup, QObject *parent)
: Map(parent), _name(name), _setup(setup), _zoom(0), _valid(false) : Map(parent), _name(name), _setup(setup), _tileLoader(0), _zoom(0),
_valid(false)
{ {
if (!QDir().mkpath(tilesDir())) { if (!QDir().mkpath(tilesDir())) {
_errorString = "Error creating tiles dir"; _errorString = "Error creating tiles dir";

View File

@ -36,7 +36,8 @@ bool WMTSMap::loadWMTS()
} }
WMTSMap::WMTSMap(const QString &name, const WMTS::Setup &setup, QObject *parent) WMTSMap::WMTSMap(const QString &name, const WMTS::Setup &setup, QObject *parent)
: Map(parent), _name(name), _setup(setup), _zoom(0), _valid(false) : Map(parent), _name(name), _setup(setup), _tileLoader(0), _zoom(0),
_valid(false)
{ {
if (!QDir().mkpath(tilesDir())) { if (!QDir().mkpath(tilesDir())) {
_errorString = "Error creating tiles dir"; _errorString = "Error creating tiles dir";