From f1f2bd9c946422c51e909b9e67f75da99a115a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 22 Feb 2018 17:54:58 +0100 Subject: [PATCH] Qt: Fix warning about array initialisation --- Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp b/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp index 9431eff864..0d8b892cd5 100644 --- a/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp +++ b/Source/Core/DolphinQt2/Config/Mapping/MappingIndicator.cpp @@ -182,7 +182,7 @@ void MappingIndicator::DrawStick() } // Coordinates for an octagon - std::array radius_octagon = { + std::array 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);