@@ -403,6 +403,7 @@ void Screen::updateEffectiveRendition()
403
403
404
404
void Screen::copyFromHistory (Character* dest, int startLine, int count) const
405
405
{
406
+ // cppcheck-suppress assertWithSideEffect
406
407
Q_ASSERT ( startLine >= 0 && count > 0 && startLine + count <= history->getLines () );
407
408
408
409
for (int line = startLine; line < startLine + count; line++)
@@ -456,6 +457,7 @@ void Screen::copyFromScreen(Character* dest , int startLine , int count) const
456
457
void Screen::getImage ( Character* dest, int size, int startLine, int endLine ) const
457
458
{
458
459
Q_ASSERT ( startLine >= 0 );
460
+ // cppcheck-suppress assertWithSideEffect
459
461
Q_ASSERT ( endLine >= startLine && endLine < history->getLines () + lines );
460
462
461
463
const int mergedLines = endLine - startLine + 1 ;
@@ -492,6 +494,7 @@ void Screen::getImage( Character* dest, int size, int startLine, int endLine ) c
492
494
QVector<LineProperty> Screen::getLineProperties ( int startLine , int endLine ) const
493
495
{
494
496
Q_ASSERT ( startLine >= 0 );
497
+ // cppcheck-suppress assertWithSideEffect
495
498
Q_ASSERT ( endLine >= startLine && endLine < history->getLines () + lines );
496
499
497
500
const int mergedLines = endLine-startLine+1 ;
@@ -1204,6 +1207,7 @@ int Screen::copyLineToStream(int line ,
1204
1207
// safety checks
1205
1208
assert ( start >= 0 );
1206
1209
assert ( count >= 0 );
1210
+ // cppcheck-suppress assertWithSideEffect
1207
1211
assert ( (start+count) <= history->getLineLen (line) );
1208
1212
1209
1213
history->getCells (line,start,count,characterBuffer);
0 commit comments