Commit 61cfd053 authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

resolve compiler warnings of uninitialized variables

parent 0026e64a
......@@ -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")) {
......
......@@ -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")) {
......
......@@ -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")) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment