Commit 1233aa0f authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Initialize _maxLineCount in the initilization list directly.

parent 02a82188
......@@ -281,11 +281,10 @@ void HistoryScrollFile::addLine(bool previousWrapped)
HistoryScrollBuffer::HistoryScrollBuffer(unsigned int maxLineCount)
: HistoryScroll(new HistoryTypeBuffer(maxLineCount))
,_historyBuffer()
,_maxLineCount(0)
,_maxLineCount(maxLineCount)
,_usedLines(0)
,_head(0)
{
setMaxNbLines(maxLineCount);
}
HistoryScrollBuffer::~HistoryScrollBuffer()
......
Supports Markdown
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