aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-31 21:53:16 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-31 21:53:48 +0200
commitf50c214551917edb58931185c47e82f0477d35cc (patch)
treeb7105533ea0750e8eb6a8f02c9731c76905752c8
parent977b10ef2348dd790b662a86374b20211fa1d1d1 (diff)
Remove c style struct initializer (also in c++2x)
-rw-r--r--src/ChannelTopPanel.cpp8
1 files changed, 3 insertions, 5 deletions
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();