mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:40:05 +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, |       {awips::ibw::ThreatCategory::Considerable, | ||||||
|        {.highlightColor_ {0, 255, 0, 255}, |        {.highlightColor_ {0, 255, 0, 255}, | ||||||
|         .lineColor_ {kColorBlack_}, |         .lineColor_ {kColorBlack_}, | ||||||
|         .highlightWidth_ {1}, |         .highlightWidth_ = 1, | ||||||
|         .lineWidth_ {1}}}, |         .lineWidth_      = 1}}, | ||||||
|       {awips::ibw::ThreatCategory::Catastrophic, |       {awips::ibw::ThreatCategory::Catastrophic, | ||||||
|        {.highlightColor_ {0, 255, 0, 255}, |        {.highlightColor_ {0, 255, 0, 255}, | ||||||
|         .lineColor_ {255, 0, 0, 255}, |         .lineColor_ {255, 0, 0, 255}, | ||||||
|         .highlightWidth_ {1}, |         .highlightWidth_ = 1, | ||||||
|         .lineWidth_ {1}}}}}, |         .lineWidth_      = 1}}}}, | ||||||
|     {awips::Phenomenon::SevereThunderstorm, |     {awips::Phenomenon::SevereThunderstorm, | ||||||
|      {{awips::ibw::ThreatCategory::Base, {.lineColor_ {255, 255, 0, 255}}}, |      {{awips::ibw::ThreatCategory::Base, {.lineColor_ {255, 255, 0, 255}}}, | ||||||
|       {awips::ibw::ThreatCategory::Considerable, |       {awips::ibw::ThreatCategory::Considerable, | ||||||
|        {.highlightColor_ {255, 255, 0, 255}, |        {.highlightColor_ {255, 255, 0, 255}, | ||||||
|         .lineColor_ {255, 0, 0, 255}, |         .lineColor_ {255, 0, 0, 255}, | ||||||
|         .highlightWidth_ {1}, |         .highlightWidth_ = 1, | ||||||
|         .lineWidth_ {1}}}, |         .lineWidth_      = 1}}, | ||||||
|       {awips::ibw::ThreatCategory::Destructive, |       {awips::ibw::ThreatCategory::Destructive, | ||||||
|        {.highlightColor_ {255, 255, 0, 255}, |        {.highlightColor_ {255, 255, 0, 255}, | ||||||
|         .lineColor_ {255, 0, 0, 255}, |         .lineColor_ {255, 0, 0, 255}, | ||||||
|         .highlightWidth_ {1}, |         .highlightWidth_ = 1, | ||||||
|         .lineWidth_ {2}}}}}, |         .lineWidth_      = 2}}}}, | ||||||
|     {awips::Phenomenon::SnowSquall, |     {awips::Phenomenon::SnowSquall, | ||||||
|      {{awips::ibw::ThreatCategory::Base, {.lineColor_ {0, 255, 255, 255}}}}}, |      {{awips::ibw::ThreatCategory::Base, {.lineColor_ {0, 255, 255, 255}}}}}, | ||||||
|     {awips::Phenomenon::Tornado, |     {awips::Phenomenon::Tornado, | ||||||
|  | @ -69,29 +69,29 @@ static const boost::unordered_flat_map<awips::Phenomenon, ThreatCategoryPalette> | ||||||
|       {awips::ibw::ThreatCategory::Catastrophic, |       {awips::ibw::ThreatCategory::Catastrophic, | ||||||
|        {.highlightColor_ {255, 0, 255, 255}, |        {.highlightColor_ {255, 0, 255, 255}, | ||||||
|         .lineColor_ {kColorBlack_}, |         .lineColor_ {kColorBlack_}, | ||||||
|         .highlightWidth_ {1}, |         .highlightWidth_ = 1, | ||||||
|         .lineWidth_ {1}}}}}}; |         .lineWidth_      = 1}}}}}; | ||||||
| 
 | 
 | ||||||
| static const boost::unordered_flat_map<awips::Phenomenon, LineData> | static const boost::unordered_flat_map<awips::Phenomenon, LineData> | ||||||
|    kObservedPalettes_ //
 |    kObservedPalettes_ //
 | ||||||
|    {{awips::Phenomenon::Tornado, |    {{awips::Phenomenon::Tornado, | ||||||
|      {.highlightColor_ {255, 0, 0, 255}, |      {.highlightColor_ {255, 0, 0, 255}, | ||||||
|       .lineColor_ {kColorBlack_}, |       .lineColor_ {kColorBlack_}, | ||||||
|       .highlightWidth_ {1}, |       .highlightWidth_ = 1, | ||||||
|       .lineWidth_ {1}}}}; |       .lineWidth_      = 1}}}; | ||||||
| 
 | 
 | ||||||
| static const boost::unordered_flat_map<awips::Phenomenon, LineData> | static const boost::unordered_flat_map<awips::Phenomenon, LineData> | ||||||
|    kTornadoPossiblePalettes_ //
 |    kTornadoPossiblePalettes_ //
 | ||||||
|    {{awips::Phenomenon::Marine, |    {{awips::Phenomenon::Marine, | ||||||
|      {.highlightColor_ {255, 127, 0, 255}, |      {.highlightColor_ {255, 127, 0, 255}, | ||||||
|       .lineColor_ {kColorBlack_}, |       .lineColor_ {kColorBlack_}, | ||||||
|       .highlightWidth_ {1}, |       .highlightWidth_ = 1, | ||||||
|       .lineWidth_ {1}}}, |       .lineWidth_      = 1}}, | ||||||
|     {awips::Phenomenon::SevereThunderstorm, |     {awips::Phenomenon::SevereThunderstorm, | ||||||
|      {.highlightColor_ {255, 255, 0, 255}, |      {.highlightColor_ {255, 255, 0, 255}, | ||||||
|       .lineColor_ {kColorBlack_}, |       .lineColor_ {kColorBlack_}, | ||||||
|       .highlightWidth_ {1}, |       .highlightWidth_ = 1, | ||||||
|       .lineWidth_ {1}}}}; |       .lineWidth_      = 1}}}; | ||||||
| 
 | 
 | ||||||
| static const boost::unordered_flat_map<awips::Phenomenon, LineData> | static const boost::unordered_flat_map<awips::Phenomenon, LineData> | ||||||
|    kInactivePalettes_ //
 |    kInactivePalettes_ //
 | ||||||
|  |  | ||||||
|  | @ -18,7 +18,7 @@ static const std::string logPrefix_ = "scwx::awips::ibw::impact_based_warnings"; | ||||||
| static const boost::unordered_flat_map<Phenomenon, ImpactBasedWarningInfo> | static const boost::unordered_flat_map<Phenomenon, ImpactBasedWarningInfo> | ||||||
|    impactBasedWarningInfo_ { |    impactBasedWarningInfo_ { | ||||||
|       {Phenomenon::Marine, |       {Phenomenon::Marine, | ||||||
|        ImpactBasedWarningInfo {.hasTornadoPossibleTag_ {true}}}, |        ImpactBasedWarningInfo {.hasTornadoPossibleTag_ = true}}, | ||||||
|       {Phenomenon::FlashFlood, |       {Phenomenon::FlashFlood, | ||||||
|        ImpactBasedWarningInfo { |        ImpactBasedWarningInfo { | ||||||
|           .threatCategories_ {ThreatCategory::Base, |           .threatCategories_ {ThreatCategory::Base, | ||||||
|  | @ -26,14 +26,14 @@ static const boost::unordered_flat_map<Phenomenon, ImpactBasedWarningInfo> | ||||||
|                               ThreatCategory::Catastrophic}}}, |                               ThreatCategory::Catastrophic}}}, | ||||||
|       {Phenomenon::SevereThunderstorm, |       {Phenomenon::SevereThunderstorm, | ||||||
|        ImpactBasedWarningInfo { |        ImpactBasedWarningInfo { | ||||||
|           .hasTornadoPossibleTag_ {true}, |           .hasTornadoPossibleTag_ = true, | ||||||
|           .threatCategories_ {ThreatCategory::Base, |           .threatCategories_ {ThreatCategory::Base, | ||||||
|                               ThreatCategory::Considerable, |                               ThreatCategory::Considerable, | ||||||
|                               ThreatCategory::Destructive}}}, |                               ThreatCategory::Destructive}}}, | ||||||
|       {Phenomenon::SnowSquall, ImpactBasedWarningInfo {}}, |       {Phenomenon::SnowSquall, ImpactBasedWarningInfo {}}, | ||||||
|       {Phenomenon::Tornado, |       {Phenomenon::Tornado, | ||||||
|        ImpactBasedWarningInfo { |        ImpactBasedWarningInfo { | ||||||
|           .hasObservedTag_ {true}, |           .hasObservedTag_ = true, | ||||||
|           .threatCategories_ {ThreatCategory::Base, |           .threatCategories_ {ThreatCategory::Base, | ||||||
|                               ThreatCategory::Considerable, |                               ThreatCategory::Considerable, | ||||||
|                               ThreatCategory::Catastrophic}}}, |                               ThreatCategory::Catastrophic}}}, | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat