Changed all catch types to references for polymorphic exceptions.

This commit is contained in:
Markus Lampert
2018-07-30 10:28:54 -07:00
committed by wmayer
parent 1a6fd6b048
commit e13c09235f
53 changed files with 98 additions and 98 deletions

View File

@@ -958,7 +958,7 @@ void PropertyLinkSubList::setPyObject(PyObject *value)
dummy.setPyObject(value);
this->setValue(dummy.getValue(), dummy.getSubValues());
}
catch (Base::TypeError) {
catch (Base::TypeError&) {
if (PyTuple_Check(value) || PyList_Check(value)) {
Py::Sequence list(value);
Py::Sequence::size_type size = list.size();