Remove SIs in rules_data.cc.
The global |kRawData| std::map constant have to be initialized when the program starts. Instead, make it a static local by wrapping it in a GetRawData() function so the map is initialized on first use instead. This remove 14 static initializers. Along the way, make some globals fully const, use |kKeyMapCount| in more places instead of hardcoding its value, simplify some code, and make the modified files free of lint errors. Bug: 537099 Change-Id: I1b6d059f608db108bb4ecb672119a5f43634bef5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824067Reviewed-by:Shu Chen <shuchen@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/master@{#706278}
Showing
This diff is collapsed.
Please register or sign in to comment