mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Initialize NewVis::Spare member variable
Summary: This struct variable is not used yet, but initializing it fixes a warning in cppcheck. Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Subscribers: msutcliffe, kbasan, jenkins Differential Revision: https://dev.swift-project.org/D32
This commit is contained in:
committed by
Mathew Sutcliffe
parent
984b30aef3
commit
574d4056ce
@@ -156,6 +156,7 @@ namespace BlackSimPlugin
|
||||
vis.UpperAlt = surfaceVisibility.getTop().value(CLengthUnit::m());
|
||||
// Range is measured in: 1/100ths sm
|
||||
vis.Range = surfaceVisibility.getVisibility().value(CLengthUnit::SM()) * 100;
|
||||
vis.Spare = 0;
|
||||
nw.Vis = vis;
|
||||
|
||||
for (const auto &visibilityLayer : visibilityLayers)
|
||||
@@ -163,6 +164,7 @@ namespace BlackSimPlugin
|
||||
vis.LowerAlt = visibilityLayer.getBase().value(CLengthUnit::m());
|
||||
vis.UpperAlt = visibilityLayer.getTop().value(CLengthUnit::m());
|
||||
vis.Range = visibilityLayer.getVisibility().value(CLengthUnit::SM()) * 100;
|
||||
vis.Spare = 0;
|
||||
nw.UpperVis[nw.nUpperVisCtr++] = vis;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user