mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix several warnings and potentially uninitialized data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user