From c4b3a81b0b09a16e62d0250d5ebf53f6dd7804ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 2 Apr 2017 09:32:40 +0200 Subject: [PATCH] Make coverity happy --- src/atlas.cpp | 2 +- src/offlinemap.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/atlas.cpp b/src/atlas.cpp index 5e500d4d..3b745654 100644 --- a/src/atlas.cpp +++ b/src/atlas.cpp @@ -107,6 +107,7 @@ void Atlas::computeBounds() Atlas::Atlas(const QString &path, QObject *parent) : Map(parent) { _valid = false; + _zoom = 0; QFileInfo fi(path); _name = fi.fileName(); @@ -139,7 +140,6 @@ Atlas::Atlas(const QString &path, QObject *parent) : Map(parent) computeZooms(); computeBounds(); - _zoom = 0; _valid = true; } diff --git a/src/offlinemap.cpp b/src/offlinemap.cpp index 223b986b..5d31ef3c 100644 --- a/src/offlinemap.cpp +++ b/src/offlinemap.cpp @@ -328,6 +328,7 @@ OfflineMap::OfflineMap(const QString &path, QObject *parent) : Map(parent) _valid = false; _img = 0; _projection = 0; + _resolution = 0; QFileInfo fi(path); _name = fi.fileName();