From f50c214551917edb58931185c47e82f0477d35cc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 31 May 2018 21:53:16 +0200 Subject: Remove c style struct initializer (also in c++2x) --- src/ChannelTopPanel.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ChannelTopPanel.cpp b/src/ChannelTopPanel.cpp index df69a17..bf122d2 100644 --- a/src/ChannelTopPanel.cpp +++ b/src/ChannelTopPanel.cpp @@ -53,11 +53,9 @@ namespace dchat sf::Vector2f bottomLinePos(floor(ChannelSidePanel::getWidth() + PADDING_SIDE * Settings::getScaling()), getHeight() - BOTTOM_LINE_HEIGHT); sf::Vector2f bottomLineSize(floor(windowSize.x - ChannelSidePanel::getWidth() - UsersSidePanel::getWidth() - PADDING_SIDE * Settings::getScaling() * 2.0f), BOTTOM_LINE_HEIGHT); - LineColor lineColor - { - .sideColor = lineSideColor, - .centerColor = lineCenterColor - }; + LineColor lineColor; + lineColor.sideColor = lineSideColor; + lineColor.centerColor = lineCenterColor; drawGradientLine(bottomLinePos, bottomLineSize, lineColor, window); Channel *currentChannel = Channel::getCurrent(); -- cgit v1.2.3