mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-06 12:34:24 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
namespace traffic
|
||||
{
|
||||
uint32_t const kSpeedGroupThresholdPercentage[] = {8, 16, 33, 58, 83, 100, 100, 100};
|
||||
uint32_t constexpr kSpeedGroupThresholdPercentage[] = {8, 16, 33, 58, 83, 100, 100, 100};
|
||||
|
||||
SpeedGroup GetSpeedGroupByPercentage(double p)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ string MakeRemoteURL(string const & name, uint64_t version)
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
char const kETag[] = "etag";
|
||||
char constexpr kETag[] = "etag";
|
||||
} // namespace
|
||||
|
||||
// TrafficInfo::RoadSegmentId -----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user