fix compilation warning

This commit is contained in:
andrea
2023-09-07 16:53:49 +02:00
committed by wwmayer
parent 381efa3b35
commit dccca2b7ed

View File

@@ -77,9 +77,8 @@ inline bool cursorBeyond( const QTextCursor &cursor, const QTextCursor &limit, i
if (cursor.hasSelection()) {
return (cursor.selectionStart() >= pos && cursor.selectionEnd() >= pos);
}
else {
return cursor.position() >= (pos + shift);
}
return cursor.position() >= (pos + shift);
}
struct PythonConsoleP
@@ -87,9 +86,9 @@ struct PythonConsoleP
enum Output {Error = 20, Message = 21};
enum CopyType {Normal, History, Command};
CopyType type;
PyObject *_stdoutPy, *_stderrPy, *_stdinPy, *_stdin;
InteractiveInterpreter* interpreter;
CallTipsList* callTipsList;
PyObject *_stdoutPy=nullptr, *_stderrPy=nullptr, *_stdinPy=nullptr, *_stdin=nullptr;
InteractiveInterpreter* interpreter=nullptr;
CallTipsList* callTipsList=nullptr;
ConsoleHistory history;
QString output, error, info, historyFile;
QStringList statements;
@@ -99,12 +98,6 @@ struct PythonConsoleP
PythonConsoleP()
{
type = Normal;
_stdoutPy = nullptr;
_stderrPy = nullptr;
_stdinPy = nullptr;
_stdin = nullptr;
interpreter = nullptr;
callTipsList = nullptr;
interactive = false;
historyFile = QString::fromUtf8((App::Application::getUserAppDataDir() + "PythonHistory.log").c_str());
colormap[QLatin1String("Text")] = qApp->palette().windowText().color();