fix compilation warning
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user