Skip to content

Commit

Permalink
Replace use of qCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 5, 2017
1 parent 83e6858 commit 1b5fbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/grass/qtermwidget/History.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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 );
}

Expand Down

0 comments on commit 1b5fbf9

Please sign in to comment.