Skip to content

Commit 5487c61

Browse files
committed
[commontk] Fix windows build error renaming stdout ivar
1 parent 3d3943f commit 5487c61

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
@@ -1916,10 +1916,10 @@ bool PythonQt::redirectStdOutCallbackEnabled() const
19161916
PythonQtObjectPtr pythonqt_stdout;
19171917
pythonqt_stdout.setNewRef(PyObject_GetAttrString(sys.object(), "pythonqt_stdout"));
19181918

1919-
PythonQtObjectPtr stdout;
1920-
stdout.setNewRef(PyObject_GetAttrString(sys.object(), "stdout"));
1919+
PythonQtObjectPtr sys_stdout;
1920+
sys_stdout.setNewRef(PyObject_GetAttrString(sys.object(), "stdout"));
19211921

1922-
return PyObject_RichCompareBool(pythonqt_stdout.object(), stdout.object(), Py_EQ);
1922+
return PyObject_RichCompareBool(pythonqt_stdout.object(), sys_stdout.object(), Py_EQ);
19231923
}
19241924

19251925
void PythonQt::setRedirectStdOutCallbackEnabled(bool enabled)

0 commit comments

Comments
 (0)