Make some member functions const
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
4b43c8fa77
commit
4dd62f8a87
+1
-1
@@ -401,7 +401,7 @@ void HistoryScrollBuffer::setMaxNbLines(unsigned int lineCount)
|
||||
dynamic_cast<HistoryTypeBuffer*>(m_histType)->m_nbLines = lineCount;
|
||||
}
|
||||
|
||||
int HistoryScrollBuffer::bufferIndex(int lineNumber)
|
||||
int HistoryScrollBuffer::bufferIndex(int lineNumber) const
|
||||
{
|
||||
Q_ASSERT( lineNumber >= 0 );
|
||||
Q_ASSERT( lineNumber < _maxLineCount );
|
||||
|
||||
Reference in New Issue
Block a user