Commit 52a9df57 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Comment out auxiliar functions to test Screen

for_each_n() doesn't compile w/ gcc 8.3.x

BUG: 432639
parent cf8316bb
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
// Qt // Qt
#include <QSet> #include <QSet>
#include <QTextStream> #include <QTextStream>
#include <QDebug>
// Konsole decoders // Konsole decoders
#include <PlainTextDecoder.h> #include <PlainTextDecoder.h>
...@@ -387,6 +386,10 @@ void Screen::setReflowLines(bool enable) ...@@ -387,6 +386,10 @@ void Screen::setReflowLines(bool enable)
_enableReflowLines = enable; _enableReflowLines = enable;
} }
/* Note that if you use these debugging functions, it will
fail to compile on gcc 8.3.1 as of Feb 2021 due to for_each_n().
See BKO: 432639
// Debugging auxiliar functions to show what is written in screen or history // Debugging auxiliar functions to show what is written in screen or history
void toDebug(const Character *s, int count, bool wrapped = false) void toDebug(const Character *s, int count, bool wrapped = false)
{ {
...@@ -402,7 +405,7 @@ void toDebug(const QVector<Character> &s, bool wrapped = false) ...@@ -402,7 +405,7 @@ void toDebug(const QVector<Character> &s, bool wrapped = false)
{ {
toDebug(s.data(), s.size(), wrapped); toDebug(s.data(), s.size(), wrapped);
} }
///// */
int Screen::getCursorLine() int Screen::getCursorLine()
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment