]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix crashes in unit-tests related to incorrect message processing from Python.
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 12 May 2020 21:16:58 +0000 (00:16 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Tue, 12 May 2020 21:16:58 +0000 (00:16 +0300)
src/Events/Events.i
src/ModelAPI/ModelAPI.i

index e395be12ea0f189f6d53dd9b2659ea6a4996bf21..c623fd1e4c24172d3aff5726adc6e0bbcc634510 100644 (file)
 // standard definitions
 %include "typemaps.i"
 %include "std_string.i"
+%include "std_shared_ptr.i"
 
 // directors
 %feature("director") Events_Listener;
 
+%shared_ptr(Events_InfoMessage)
+%shared_ptr(Events_Message)
+%shared_ptr(Events_MessageGroup)
+
 // all supported interfaces
 %include "Events_Message.h"
 %include "Events_InfoMessage.h"
index de2ef30856697eaf683c4af0debd4adac0c134d2..ca786a2a6fb0a7cac7ad45aff0c66110c33ec894 100644 (file)
@@ -97,6 +97,7 @@
 %shared_ptr(ModelAPI_ResultField)
 %shared_ptr(ModelAPI_ResultParameter)
 %shared_ptr(ModelAPI_ResultCompSolid)
+%shared_ptr(ModelAPI_ObjectUpdatedMessage)
 
 %typecheck(SWIG_TYPECHECK_POINTER) const ModelAPI_AttributeTables::Value {
   $1 = (PyFloat_Check($input) || PyLong_Check($input) || PyUnicode_Check($input) || PyBool_Check($input)) ? 1 : 0;