From 5547cf668e74909ebb6a6978382f35f0f0a96b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 10 Jul 2018 08:58:37 +0200 Subject: [PATCH] Make Coverity happy --- src/GUI/gearratiographitem.cpp | 2 +- src/map/wmsmap.cpp | 3 ++- src/map/wmtsmap.cpp | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GUI/gearratiographitem.cpp b/src/GUI/gearratiographitem.cpp index 64a10d82..70d69216 100644 --- a/src/GUI/gearratiographitem.cpp +++ b/src/GUI/gearratiographitem.cpp @@ -3,7 +3,7 @@ #include "gearratiographitem.h" GearRatioGraphItem::GearRatioGraphItem(const Graph &graph, GraphType type, - QGraphicsItem *parent) : GraphItem(graph, type, parent) + QGraphicsItem *parent) : GraphItem(graph, type, parent), _top(NAN) { qreal val = NAN; diff --git a/src/map/wmsmap.cpp b/src/map/wmsmap.cpp index 1ffefeb5..efdb0c6b 100644 --- a/src/map/wmsmap.cpp +++ b/src/map/wmsmap.cpp @@ -102,7 +102,8 @@ bool WMSMap::loadWMS() } 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())) { _errorString = "Error creating tiles dir"; diff --git a/src/map/wmtsmap.cpp b/src/map/wmtsmap.cpp index b1cd406c..8ddbf26f 100644 --- a/src/map/wmtsmap.cpp +++ b/src/map/wmtsmap.cpp @@ -36,7 +36,8 @@ bool WMTSMap::loadWMTS() } 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())) { _errorString = "Error creating tiles dir";