Skip to content

Commit a9c5173

Browse files
jcfrjamesobutler
authored andcommitted
Fix windows build error renaming stdout ivar
1 parent fcee352 commit a9c5173

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PythonQt.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,10 +1921,10 @@ bool PythonQt::redirectStdOutCallbackEnabled() const
19211921
PythonQtObjectPtr pythonqt_stdout;
19221922
pythonqt_stdout.setNewRef(PyObject_GetAttrString(sys.object(), "pythonqt_stdout"));
19231923

1924-
PythonQtObjectPtr stdout;
1925-
stdout.setNewRef(PyObject_GetAttrString(sys.object(), "stdout"));
1924+
PythonQtObjectPtr sys_stdout;
1925+
sys_stdout.setNewRef(PyObject_GetAttrString(sys.object(), "stdout"));
19261926

1927-
return PyObject_RichCompareBool(pythonqt_stdout.object(), stdout.object(), Py_EQ);
1927+
return PyObject_RichCompareBool(pythonqt_stdout.object(), sys_stdout.object(), Py_EQ);
19281928
}
19291929

19301930
void PythonQt::setRedirectStdOutCallbackEnabled(bool enabled)

0 commit comments

Comments
 (0)