Fix several warnings and potentially uninitialized data

This commit is contained in:
Magne Sjaastad
2020-03-03 20:22:03 +01:00
parent e297b34609
commit 8c485ab81c
6 changed files with 23 additions and 4 deletions

View File

@@ -46,9 +46,10 @@ protected:
charHeight = 0.0f;
lineSpacing = 0.0f;
margins = cvf::Vec2f::ZERO;
tickEndX = 0.0f;
tickStartX = 0.0f;
tickMidX = 0.0f;
tickEndX = 0.0f;
tickTextLeadSpace = 0.0f;
overallLegendSize = setSize;
}

View File

@@ -97,6 +97,14 @@ protected:
{
OverlayColorLegendLayoutInfo(const Vec2ui& setSize)
{
charHeight = 0.0f;
lineSpacing = 0.0f;
margins = cvf::Vec2f::ZERO;
tickStartX = 0.0f;
tickMidX = 0.0f;
tickEndX = 0.0f;
tickTextLeadSpace = 0.0f;
overallLegendSize = setSize;
}

View File

@@ -112,6 +112,17 @@ protected:
LayoutInfo(const Vec2ui& setSize)
{
charWidth = 0.0f;
charHeight = 0.0f;
lineSpacing = 0.0f;
margins = cvf::Vec2f::ZERO;
tickTextLeadSpace = 0.0f;
axisStartPt = cvf::Vec2f::ZERO;
axisLength = 0.0f;
majorTickSize = 0.0f;
minorTickSize = 0.0f;
overallLegendSize = setSize;
}