]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/XAO/XAO_Group.cxx
Salome HOME
bos #20493 Sync XAO with GEOM module
[modules/shaper.git] / src / XAO / XAO_Group.cxx
index fe66b47cb4bea753722e3567331fda612a245780..83af8e4165854b219e22b1262634d846a404cda6 100644 (file)
@@ -24,8 +24,7 @@
 using namespace XAO;
 
 
-Group::Group(const XAO::Dimension& dim, const int& nbElements, const std::string& name)
-throw (XAO_Exception)
+Group::Group(XAO::Dimension dim, int nbElements, const std::string& name)
 {
     if (dim == XAO::WHOLE)
         throw XAO_Exception("Dimension WHOLE is not valid for group.");
@@ -40,8 +39,7 @@ Group::~Group()
 {
 }
 
-void Group::checkIndex(const int& element)
-throw (XAO_Exception)
+void Group::checkIndex(int element)
 {
   if (element < (int)m_elements.size() && element >= 0)
         return;
@@ -50,12 +48,12 @@ throw (XAO_Exception)
                                      << m_elements.size()-1 << "]: " << element);
 }
 
-void Group::add(const int& value)
+void Group::add(int value)
 {
     m_elements.insert(value);
 }
 
-void Group::remove(const int& value)
+void Group::remove(int value)
 {
     m_elements.erase(value);
 }