mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-29 22:30:04 +00:00
Don't use braces around scalar initializers
This commit is contained in:
parent
584f5943b6
commit
40d70b0a13
2 changed files with 19 additions and 19 deletions
|
|
@ -41,25 +41,25 @@ static const boost::unordered_flat_map<awips::Phenomenon, ThreatCategoryPalette>
|
|||
{awips::ibw::ThreatCategory::Considerable,
|
||||
{.highlightColor_ {0, 255, 0, 255},
|
||||
.lineColor_ {kColorBlack_},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}},
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}},
|
||||
{awips::ibw::ThreatCategory::Catastrophic,
|
||||
{.highlightColor_ {0, 255, 0, 255},
|
||||
.lineColor_ {255, 0, 0, 255},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}}}},
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}}}},
|
||||
{awips::Phenomenon::SevereThunderstorm,
|
||||
{{awips::ibw::ThreatCategory::Base, {.lineColor_ {255, 255, 0, 255}}},
|
||||
{awips::ibw::ThreatCategory::Considerable,
|
||||
{.highlightColor_ {255, 255, 0, 255},
|
||||
.lineColor_ {255, 0, 0, 255},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}},
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}},
|
||||
{awips::ibw::ThreatCategory::Destructive,
|
||||
{.highlightColor_ {255, 255, 0, 255},
|
||||
.lineColor_ {255, 0, 0, 255},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {2}}}}},
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 2}}}},
|
||||
{awips::Phenomenon::SnowSquall,
|
||||
{{awips::ibw::ThreatCategory::Base, {.lineColor_ {0, 255, 255, 255}}}}},
|
||||
{awips::Phenomenon::Tornado,
|
||||
|
|
@ -69,29 +69,29 @@ static const boost::unordered_flat_map<awips::Phenomenon, ThreatCategoryPalette>
|
|||
{awips::ibw::ThreatCategory::Catastrophic,
|
||||
{.highlightColor_ {255, 0, 255, 255},
|
||||
.lineColor_ {kColorBlack_},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}}}}};
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}}}}};
|
||||
|
||||
static const boost::unordered_flat_map<awips::Phenomenon, LineData>
|
||||
kObservedPalettes_ //
|
||||
{{awips::Phenomenon::Tornado,
|
||||
{.highlightColor_ {255, 0, 0, 255},
|
||||
.lineColor_ {kColorBlack_},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}}};
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}}};
|
||||
|
||||
static const boost::unordered_flat_map<awips::Phenomenon, LineData>
|
||||
kTornadoPossiblePalettes_ //
|
||||
{{awips::Phenomenon::Marine,
|
||||
{.highlightColor_ {255, 127, 0, 255},
|
||||
.lineColor_ {kColorBlack_},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}},
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}},
|
||||
{awips::Phenomenon::SevereThunderstorm,
|
||||
{.highlightColor_ {255, 255, 0, 255},
|
||||
.lineColor_ {kColorBlack_},
|
||||
.highlightWidth_ {1},
|
||||
.lineWidth_ {1}}}};
|
||||
.highlightWidth_ = 1,
|
||||
.lineWidth_ = 1}}};
|
||||
|
||||
static const boost::unordered_flat_map<awips::Phenomenon, LineData>
|
||||
kInactivePalettes_ //
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ static const std::string logPrefix_ = "scwx::awips::ibw::impact_based_warnings";
|
|||
static const boost::unordered_flat_map<Phenomenon, ImpactBasedWarningInfo>
|
||||
impactBasedWarningInfo_ {
|
||||
{Phenomenon::Marine,
|
||||
ImpactBasedWarningInfo {.hasTornadoPossibleTag_ {true}}},
|
||||
ImpactBasedWarningInfo {.hasTornadoPossibleTag_ = true}},
|
||||
{Phenomenon::FlashFlood,
|
||||
ImpactBasedWarningInfo {
|
||||
.threatCategories_ {ThreatCategory::Base,
|
||||
|
|
@ -26,14 +26,14 @@ static const boost::unordered_flat_map<Phenomenon, ImpactBasedWarningInfo>
|
|||
ThreatCategory::Catastrophic}}},
|
||||
{Phenomenon::SevereThunderstorm,
|
||||
ImpactBasedWarningInfo {
|
||||
.hasTornadoPossibleTag_ {true},
|
||||
.hasTornadoPossibleTag_ = true,
|
||||
.threatCategories_ {ThreatCategory::Base,
|
||||
ThreatCategory::Considerable,
|
||||
ThreatCategory::Destructive}}},
|
||||
{Phenomenon::SnowSquall, ImpactBasedWarningInfo {}},
|
||||
{Phenomenon::Tornado,
|
||||
ImpactBasedWarningInfo {
|
||||
.hasObservedTag_ {true},
|
||||
.hasObservedTag_ = true,
|
||||
.threatCategories_ {ThreatCategory::Base,
|
||||
ThreatCategory::Considerable,
|
||||
ThreatCategory::Catastrophic}}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue