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:
parent
dd9e42ad27
commit
5547cf668e
@ -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;
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user