X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FPluginUtils%2FGeomSelectionTools.cxx;h=03151a6405b4420d3df7b491b9ff234e8acb4b48;hp=d57f2a210b0ce44e35bc5a584e1818cca156cc13;hb=6bac08c1a81f34d3f21c550bd92f83654b2546a5;hpb=5d68554076bbca0e1e95fb0db215a6c2b84b6c54 diff --git a/src/PluginUtils/GeomSelectionTools.cxx b/src/PluginUtils/GeomSelectionTools.cxx index d57f2a210..03151a640 100644 --- a/src/PluginUtils/GeomSelectionTools.cxx +++ b/src/PluginUtils/GeomSelectionTools.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include @@ -96,7 +96,7 @@ LightApp_SelectionMgr* GeomSelectionTools::selectionMgr() */ SALOME_ListIO* GeomSelectionTools::getSelectedSalomeObjects() { - SALOME_ListIO* selected; + SALOME_ListIO* selected = new SALOME_ListIO; LightApp_SelectionMgr* aSel = selectionMgr(); aSel->selectedObjects( *selected, NULL, false ); return selected;