- void _SetItemMinSize(PyObject* item, wxSize size) {
- wxPyBeginBlockThreads();
- wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
- wxPyEndBlockThreads();
+ void _SetItemMinSize(PyObject* item, const wxSize& size) {
+ bool blocked = wxPyBeginBlockThreads();
+ wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
+ wxPyEndBlockThreads(blocked);