Mercurial > octave
changeset 28574:522be74908f5
avoid deprecated Qt qCopy function
* History.cpp: Use std::copy instead of qCopy.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 14 Jul 2020 00:55:42 -0400 |
parents | 1fca7db5994e |
children | dee4d6f1adc7 |
files | libgui/qterminal/libqterminal/unix/History.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/unix/History.cpp Tue Jul 14 00:54:06 2020 -0400 +++ b/libgui/qterminal/libqterminal/unix/History.cpp Tue Jul 14 00:55:42 2020 -0400 @@ -20,6 +20,8 @@ 02110-1301 USA. */ +#include <algorithm> + // Own #include "unix/History.h" @@ -307,7 +309,7 @@ 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); }