]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix regression in filters tests.
authorazv <azv@opencascade.com>
Tue, 9 Jul 2019 07:08:02 +0000 (10:08 +0300)
committerazv <azv@opencascade.com>
Tue, 9 Jul 2019 07:08:02 +0000 (10:08 +0300)
src/FiltersAPI/FiltersAPI.i

index 31da0685b210b73fa98bc0047b2a887cfa4ece12..8cecbc1010edb89390953f229e14229d6b2708a8 100644 (file)
         }
       } 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));