Skip to content
Permalink
Browse files

Replace use of qCopy

  • Loading branch information
nyalldawson committed Sep 5, 2017
1 parent 83e6858 commit 1b5fbf98fed23fe400a6534f3861abe239495c32
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/grass/qtermwidget/History.cpp
@@ -314,7 +314,7 @@ void HistoryScrollBuffer::addCellsVector(const QVector<Character>& cells)
void HistoryScrollBuffer::addCells(const Character a[], int count)
{
HistoryLine newLine(count);
qCopy(a,a+count,newLine.begin());
std::copy(a,a+count,newLine.begin());

addCellsVector(newLine);
}
@@ -730,7 +730,7 @@ void CompactHistoryScroll::addCellsVector ( const TextLine& cells )
void CompactHistoryScroll::addCells ( const Character a[], int count )
{
TextLine newLine ( count );
qCopy ( a,a+count,newLine.begin() );
std::copy ( a,a+count,newLine.begin() );
addCellsVector ( newLine );
}

0 comments on commit 1b5fbf9

Please sign in to comment.
You can’t perform that action at this time.