Commit a4818f0b authored by Kurt Hindenburg's avatar Kurt Hindenburg

avoid repeating the return type; use a braced initializer list instead

parent f8d0b14f
......@@ -325,7 +325,7 @@ ColorEntry ColorScheme::colorEntry(int index, uint randomSeed) const
double red, green, blue;
hsluv2rgb(hue, saturation, lightness, &red, &green, &blue);
return QColor(qRound(red * 255), qRound(green * 255), qRound(blue * 255));
return {qRound(red * 255), qRound(green * 255), qRound(blue * 255)};
}
void ColorScheme::getColorTable(ColorEntry *table, uint randomSeed) const
......
......@@ -302,8 +302,8 @@ QSize TabbedViewContainer::sizeHint() const
//
// L/R = left/right widget
return QSize(qMax(terminalSize.width(), tabBarSize.width()),
tabBarSize.height() + terminalSize.height());
return {qMax(terminalSize.width(), tabBarSize.width()),
tabBarSize.height() + terminalSize.height()};
}
void TabbedViewContainer::addSplitter(ViewSplitter *viewSplitter, int index) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment