summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-09-23 17:05:28 (GMT)
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2016-09-24 07:26:50 (GMT)
commit61cfd05382e8d4c8a273ad329cfbde713193df1f (patch)
treee00cc9af181777cb049773ab2ad2094ac506e1b0
parent0026e64a35cd5cc0ed7c4c3b0f9ea328d9fe72fb (diff)
resolve compiler warnings of uninitialized variables
-rw-r--r--src/lib/marble/geodata/handlers/kml/KmlDisplayModeTagHandler.cpp2
-rw-r--r--src/lib/marble/geodata/handlers/kml/KmlGridOriginTagHandler.cpp2
-rw-r--r--src/lib/marble/geodata/handlers/kml/KmlListItemTypeTagHandler.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/marble/geodata/handlers/kml/KmlDisplayModeTagHandler.cpp b/src/lib/marble/geodata/handlers/kml/KmlDisplayModeTagHandler.cpp
index c2f9d6c..067da31 100644
--- a/src/lib/marble/geodata/handlers/kml/KmlDisplayModeTagHandler.cpp
+++ b/src/lib/marble/geodata/handlers/kml/KmlDisplayModeTagHandler.cpp
@@ -31,7 +31,7 @@ GeoNode* KmldisplayModeTagHandler::parse( GeoParser& parser ) const
if ( parentItem.represents( kmlTag_BalloonStyle ) )
{
QString mode = parser.readElementText().trimmed();
- GeoDataBalloonStyle::DisplayMode displayMode;
+ GeoDataBalloonStyle::DisplayMode displayMode = GeoDataBalloonStyle::Default;
if (mode == QLatin1String("default")) {
displayMode = GeoDataBalloonStyle::Default;
} else if (mode == QLatin1String("hide")) {
diff --git a/src/lib/marble/geodata/handlers/kml/KmlGridOriginTagHandler.cpp b/src/lib/marble/geodata/handlers/kml/KmlGridOriginTagHandler.cpp
index bc6b672..ea6f277 100644
--- a/src/lib/marble/geodata/handlers/kml/KmlGridOriginTagHandler.cpp
+++ b/src/lib/marble/geodata/handlers/kml/KmlGridOriginTagHandler.cpp
@@ -28,7 +28,7 @@ GeoNode* KmlgridOriginTagHandler::parse( GeoParser& parser ) const
if (parentItem.represents( kmlTag_ImagePyramid ))
{
- GeoDataImagePyramid::GridOrigin gridOrigin;
+ GeoDataImagePyramid::GridOrigin gridOrigin = GeoDataImagePyramid::UpperLeft;
QString gridOriginText = parser.readElementText();
if (gridOriginText == QLatin1String("lowerLeft")) {
diff --git a/src/lib/marble/geodata/handlers/kml/KmlListItemTypeTagHandler.cpp b/src/lib/marble/geodata/handlers/kml/KmlListItemTypeTagHandler.cpp
index 36b97b1..abdc07f 100644
--- a/src/lib/marble/geodata/handlers/kml/KmlListItemTypeTagHandler.cpp
+++ b/src/lib/marble/geodata/handlers/kml/KmlListItemTypeTagHandler.cpp
@@ -31,7 +31,7 @@ GeoNode* KmllistItemTypeTagHandler::parse( GeoParser& parser ) const
if ( parentItem.represents( kmlTag_ListStyle ) )
{
QString typeText = parser.readElementText().trimmed();
- GeoDataListStyle::ListItemType type;
+ GeoDataListStyle::ListItemType type = GeoDataListStyle::Check;
if (typeText == QLatin1String("check")) {
type = GeoDataListStyle::Check;
} else if (typeText == QLatin1String("radioFolder")) {