Qt: Fix warning about array initialisation

This commit is contained in:
Léo Lam 2018-02-22 17:54:58 +01:00
parent fd063bdc31
commit f1f2bd9c94
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ void MappingIndicator::DrawStick()
}
// Coordinates for an octagon
std::array<QPointF, 8> radius_octagon = {
std::array<QPointF, 8> radius_octagon = {{
QPointF(centerx, centery + stick_size), // Bottom
QPointF(centerx + stick_size / sqrt(2), centery + stick_size / sqrt(2)), // Bottom Right
QPointF(centerx + stick_size, centery), // Right
@ -191,7 +191,7 @@ void MappingIndicator::DrawStick()
QPointF(centerx - stick_size / sqrt(2), centery - stick_size / sqrt(2)), // Top Left
QPointF(centerx - stick_size, centery), // Left
QPointF(centerx - stick_size / sqrt(2), centery + stick_size / sqrt(2)) // Bottom Left
};
}};
QPainter p(this);