diff --git a/lib/Screen.cpp b/lib/Screen.cpp index 2d1058cc..4424f236 100644 --- a/lib/Screen.cpp +++ b/lib/Screen.cpp @@ -455,7 +455,6 @@ void Screen::updateEffectiveRendition() void Screen::copyFromHistory(Character* dest, int startLine, int count) const { - // cppcheck-suppress assertWithSideEffect Q_ASSERT( startLine >= 0 && count > 0 && startLine + count <= history->getLines() ); for (int line = startLine; line < startLine + count; line++) @@ -509,7 +508,6 @@ void Screen::copyFromScreen(Character* dest , int startLine , int count) const void Screen::getImage( Character* dest, int size, int startLine, int endLine ) const { Q_ASSERT( startLine >= 0 ); - // cppcheck-suppress assertWithSideEffect Q_ASSERT( endLine >= startLine && endLine < history->getLines() + lines ); const int mergedLines = endLine - startLine + 1; @@ -546,7 +544,6 @@ void Screen::getImage( Character* dest, int size, int startLine, int endLine ) c QVector Screen::getLineProperties( int startLine , int endLine ) const { Q_ASSERT( startLine >= 0 ); - // cppcheck-suppress assertWithSideEffect Q_ASSERT( endLine >= startLine && endLine < history->getLines() + lines ); const int mergedLines = endLine-startLine+1; @@ -1266,7 +1263,6 @@ int Screen::copyLineToStream(int line , // safety checks Q_ASSERT( start >= 0 ); Q_ASSERT( count >= 0 ); - // cppcheck-suppress assertWithSideEffect Q_ASSERT( (start+count) <= history->getLineLen(line) ); history->getCells(line,start,count,characterBuffer);