comparison libgui/qterminal/libqterminal/unix/History.cpp @ 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 1dcbdc61a518
children
comparison
equal deleted inserted replaced
28573:1fca7db5994e 28574:522be74908f5
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 02110-1301 USA. 20 02110-1301 USA.
21 */ 21 */
22
23 #include <algorithm>
22 24
23 // Own 25 // Own
24 #include "unix/History.h" 26 #include "unix/History.h"
25 27
26 // System 28 // System
305 _wrappedLine[bufferIndex(_usedLines-1)] = false; 307 _wrappedLine[bufferIndex(_usedLines-1)] = false;
306 } 308 }
307 void HistoryScrollBuffer::addCells(const Character a[], int count) 309 void HistoryScrollBuffer::addCells(const Character a[], int count)
308 { 310 {
309 HistoryLine newLine(count); 311 HistoryLine newLine(count);
310 qCopy(a,a+count,newLine.begin()); 312 std::copy(a,a+count,newLine.begin());
311 313
312 addCellsVector(newLine); 314 addCellsVector(newLine);
313 } 315 }
314 316
315 void HistoryScrollBuffer::addLine(bool previousWrapped) 317 void HistoryScrollBuffer::addLine(bool previousWrapped)