mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-22 22:23:44 +00:00
[core] Use constexpr when possible
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -17,7 +17,7 @@ namespace df
|
||||
{
|
||||
namespace
|
||||
{
|
||||
std::array<float, 20> const kHalfLineWidthInPixel = {
|
||||
std::array<float, 20> constexpr kHalfLineWidthInPixel = {
|
||||
// 1 2 3 4 5 6 7 8 9 10
|
||||
1.0f, 1.2f, 1.5f, 1.5f, 1.7f, 2.0f, 2.0f, 2.3f, 2.5f, 2.7f,
|
||||
// 11 12 13 14 15 16 17 18 19 20
|
||||
|
||||
Reference in New Issue
Block a user