refactoring
This commit is contained in:
@@ -4,13 +4,11 @@
|
||||
namespace chatterino {
|
||||
namespace widgets {
|
||||
|
||||
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex,
|
||||
Style style, QString tag)
|
||||
: position(position)
|
||||
, colorIndex(std::max(
|
||||
0, std::min(ColorScheme::getInstance().HighlightColorCount, colorIndex)))
|
||||
, style(style)
|
||||
, tag(tag)
|
||||
ScrollBarHighlight::ScrollBarHighlight(float position, int colorIndex, Style style, QString tag)
|
||||
: _position(position)
|
||||
, _colorIndex(std::max(0, std::min(ColorScheme::getInstance().HighlightColorCount, colorIndex)))
|
||||
, _style(style)
|
||||
, _tag(tag)
|
||||
, next(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user