]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix return ModelHighAPI_Selection from list as a copy
authorspo <sergey.pokhodenko@opencascade.com>
Wed, 15 Jun 2016 14:03:23 +0000 (17:03 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 17 Jun 2016 11:41:10 +0000 (14:41 +0300)
src/ModelHighAPI/ModelHighAPI.i

index 03df07c00ca9e2f740557801ff420a708a901adc..1a043be269f022dce87bb1e8b54626f227dc6c17 100644 (file)
   }
 }
 
+%typemap(out) const ModelHighAPI_Selection & {
+  $1_basetype * ptr = new $1_basetype(*$1);
+  $result = SWIG_NewPointerObj( (void*) ptr, $1_descriptor, 1 );
+}
+
 // all supported interfaces
 %include "ModelHighAPI_Double.h"
 %include "ModelHighAPI_Integer.h"