From: azv Date: Tue, 9 Jul 2019 07:08:02 +0000 (+0300) Subject: Fix regression in filters tests. X-Git-Tag: VEDF2019Lot4~101^2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b092981a7f0e8ef3580619c21fc7175e18e5f074;p=modules%2Fshaper.git Fix regression in filters tests. --- diff --git a/src/FiltersAPI/FiltersAPI.i b/src/FiltersAPI/FiltersAPI.i index 31da0685b..8cecbc101 100644 --- a/src/FiltersAPI/FiltersAPI.i +++ b/src/FiltersAPI/FiltersAPI.i @@ -108,7 +108,7 @@ } } else if (PyUnicode_Check(item)) { - temp.push_back(FiltersAPI_Argument(PyUnicode_AsUTF8(item))); + temp.push_back(FiltersAPI_Argument(std::string(PyUnicode_AsUTF8(item)))); } else if (PyBool_Check(item)) { temp.push_back(FiltersAPI_Argument(item == Py_True));