Skip to content

Commit fae2301

Browse files
committed
Fix windows build error renaming stdout ivar
1 parent 946253d commit fae2301

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
@@ -1713,10 +1713,10 @@ bool PythonQt::redirectStdOutCallbackEnabled() const
17131713
PythonQtObjectPtr pythonqt_stdout;
17141714
pythonqt_stdout.setNewRef(PyObject_GetAttrString(sys.object(), "pythonqt_stdout"));
17151715

1716-
PythonQtObjectPtr stdout;
1717-
stdout.setNewRef(PyObject_GetAttrString(sys.object(), "stdout"));
1716+
PythonQtObjectPtr sys_stdout;
1717+
sys_stdout.setNewRef(PyObject_GetAttrString(sys.object(), "stdout"));
17181718

1719-
return PyObject_RichCompareBool(pythonqt_stdout.object(), stdout.object(), Py_EQ);
1719+
return PyObject_RichCompareBool(pythonqt_stdout.object(), sys_stdout.object(), Py_EQ);
17201720
}
17211721

17221722
void PythonQt::setRedirectStdOutCallbackEnabled(bool enabled)

0 commit comments

Comments
 (0)