diff --git a/graphics/circle.cpp b/graphics/circle.cpp index c387d43ec5..8bc64159fe 100644 --- a/graphics/circle.cpp +++ b/graphics/circle.cpp @@ -28,7 +28,12 @@ namespace graphics } Circle::Info::Info() - : Resource::Info(Resource::ECircle) + : Resource::Info(Resource::ECircle), + m_radius(0), + m_color(0, 0, 0, 0), + m_isOutlined(false), + m_outlineWidth(0), + m_outlineColor() {} bool Circle::Info::lessThan(Resource::Info const * r) const diff --git a/graphics/circle_element.cpp b/graphics/circle_element.cpp index b6a564599c..8fbf9ac3d0 100644 --- a/graphics/circle_element.cpp +++ b/graphics/circle_element.cpp @@ -4,6 +4,10 @@ namespace graphics { + CircleElement::Params::Params() + : m_ci() + {} + CircleElement::CircleElement(Params const & p) : base_t(p), m_ci(p.m_ci) diff --git a/graphics/circle_element.hpp b/graphics/circle_element.hpp index e9d2c6ed89..aa32a24d02 100644 --- a/graphics/circle_element.hpp +++ b/graphics/circle_element.hpp @@ -22,6 +22,7 @@ namespace graphics struct Params : public base_t::Params { Circle::Info m_ci; + Params(); }; CircleElement(Params const & p); diff --git a/graphics/image.cpp b/graphics/image.cpp index 03ed929799..f8fddf5c31 100644 --- a/graphics/image.cpp +++ b/graphics/image.cpp @@ -18,7 +18,8 @@ namespace graphics } Image::Info::Info() - : Resource::Info(Resource::EImage) + : Resource::Info(Resource::EImage), + m_size(0, 0) {} Image::Info::Info(char const * resourceName) diff --git a/graphics/overlay_element.cpp b/graphics/overlay_element.cpp index 5e75f8419c..11c5fb0223 100644 --- a/graphics/overlay_element.cpp +++ b/graphics/overlay_element.cpp @@ -7,9 +7,10 @@ namespace graphics {} OverlayElement::Params::Params() - : m_pivot(), + : m_pivot(0, 0), m_position(EPosAboveRight), - m_depth(maxDepth) + m_depth(maxDepth), + m_userInfo() {} OverlayElement::OverlayElement(Params const & p) diff --git a/graphics/path_text_element.cpp b/graphics/path_text_element.cpp index 397929a4a2..7b0ebb8b18 100644 --- a/graphics/path_text_element.cpp +++ b/graphics/path_text_element.cpp @@ -4,6 +4,13 @@ namespace graphics { + PathTextElement::Params::Params() + : m_pts(0), + m_ptsCount(0), + m_fullLength(0), + m_pathOffset(0) + {} + PathTextElement::PathTextElement(Params const & p) : TextElement(p), m_glyphLayout(p.m_glyphCache, diff --git a/graphics/path_text_element.hpp b/graphics/path_text_element.hpp index 3ebd522a59..d14e204a61 100644 --- a/graphics/path_text_element.hpp +++ b/graphics/path_text_element.hpp @@ -18,6 +18,7 @@ namespace graphics size_t m_ptsCount; double m_fullLength; double m_pathOffset; + Params(); }; PathTextElement(Params const & p); diff --git a/graphics/symbol_element.cpp b/graphics/symbol_element.cpp index 608057bb6c..1eb21e353c 100644 --- a/graphics/symbol_element.cpp +++ b/graphics/symbol_element.cpp @@ -7,6 +7,12 @@ namespace graphics { + SymbolElement::Params::Params() + : m_info(), + m_symbolRect(0, 0, 0, 0), + m_renderer(0) + {} + SymbolElement::SymbolElement(Params const & p) : base_t(p), m_info(p.m_info), diff --git a/graphics/symbol_element.hpp b/graphics/symbol_element.hpp index f01fcd5ddb..4960c06148 100644 --- a/graphics/symbol_element.hpp +++ b/graphics/symbol_element.hpp @@ -27,6 +27,7 @@ namespace graphics Icon::Info m_info; m2::RectU m_symbolRect; OverlayRenderer * m_renderer; + Params(); }; SymbolElement(Params const & p); diff --git a/gui/balloon.cpp b/gui/balloon.cpp index a32583257b..0f3b188eb8 100644 --- a/gui/balloon.cpp +++ b/gui/balloon.cpp @@ -11,6 +11,15 @@ namespace gui { Balloon::Params::Params() + : m_image(), + m_textMarginLeft(10), + m_textMarginTop(10), + m_textMarginRight(10), + m_textMarginBottom(10), + m_imageMarginLeft(10), + m_imageMarginTop(10), + m_imageMarginRight(10), + m_imageMarginBottom(10) {} Balloon::Balloon(Params const & p) diff --git a/gui/text_view.cpp b/gui/text_view.cpp index 6e14ca06e1..cec1b7d882 100644 --- a/gui/text_view.cpp +++ b/gui/text_view.cpp @@ -37,6 +37,7 @@ namespace gui shared_ptr & elem = m_elems[state]; graphics::StraightTextElement::Params params; + params.m_depth = depth(); params.m_fontDesc = font(state); params.m_fontDesc.m_size *= visualScale(); diff --git a/gui/text_view.hpp b/gui/text_view.hpp index 055ccebf1c..a485722ec0 100644 --- a/gui/text_view.hpp +++ b/gui/text_view.hpp @@ -32,7 +32,7 @@ namespace gui void purge(); void layout(); - struct Params : public gui::Element::Params + struct Params : public Element::Params { string m_text; }; diff --git a/map/compass_arrow.cpp b/map/compass_arrow.cpp index 7b71d39435..3965a090a4 100644 --- a/map/compass_arrow.cpp +++ b/map/compass_arrow.cpp @@ -13,6 +13,12 @@ #include "../graphics/screen.hpp" #include "../graphics/pen.hpp" +CompassArrow::Params::Params() + : m_arrowWidth(0), + m_arrowHeight(0), + m_framework(0) +{} + CompassArrow::CompassArrow(Params const & p) : base_t(p), m_arrowWidth(p.m_arrowWidth), diff --git a/map/compass_arrow.hpp b/map/compass_arrow.hpp index 035aac25c2..d92a166922 100644 --- a/map/compass_arrow.hpp +++ b/map/compass_arrow.hpp @@ -43,6 +43,7 @@ public: unsigned m_arrowWidth; unsigned m_arrowHeight; Framework * m_framework; + Params(); }; CompassArrow(Params const & p); diff --git a/map/country_status_display.cpp b/map/country_status_display.cpp index 3c80e2995c..11ebc5d636 100644 --- a/map/country_status_display.cpp +++ b/map/country_status_display.cpp @@ -11,6 +11,10 @@ #include "../std/bind.hpp" #include "../std/sstream.hpp" +CountryStatusDisplay::Params::Params() + : m_storage(0) +{ +} string const CountryStatusDisplay::displayName() const { diff --git a/map/country_status_display.hpp b/map/country_status_display.hpp index b35dc4211f..9278bc1c30 100644 --- a/map/country_status_display.hpp +++ b/map/country_status_display.hpp @@ -63,6 +63,7 @@ public: struct Params : public gui::Element::Params { storage::Storage * m_storage; + Params(); }; CountryStatusDisplay(Params const & p); diff --git a/map/location_state.cpp b/map/location_state.cpp index 49f897964d..b1873d6c56 100644 --- a/map/location_state.cpp +++ b/map/location_state.cpp @@ -30,6 +30,10 @@ namespace location double const State::s_cacheRadius = 500; State::Params::Params() + : m_locationAreaColor(0, 0, 0, 0), + m_compassAreaColor(0, 0, 0, 0), + m_compassBorderColor(0, 0, 0, 0), + m_framework(0) {} State::State(Params const & p)