Salome HOME
Updated copyright comment
[modules/geom.git] / src / XAO / XAO_BooleanField.cxx
index 0f2c2954851635f39782a4d6526db67827be6876..a4054fb6f51334515a3530ec98282d44a332eec7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2024  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 using namespace XAO;
 
-BooleanField::BooleanField(const XAO::Dimension& dimension,
-                           const int& nbElements, const int& nbComponents, const std::string& name)
+BooleanField::BooleanField(XAO::Dimension dimension,
+                           int nbElements, int nbComponents, const std::string& name)
     : Field(dimension, nbElements, nbComponents, name)
 {
 }
 
-Step* BooleanField::addNewStep(const int& step)
-throw (XAO_Exception)
+Step* BooleanField::addNewStep(int step)
 {
     return addStep(step, 0);
 }
 
-BooleanStep* BooleanField::addStep(const int& step)
-throw (XAO_Exception)
+BooleanStep* BooleanField::addStep(int step)
 {
     return addStep(step, 0);
 }
 
-BooleanStep* BooleanField::addStep(const int& step, const int& stamp)
-throw (XAO_Exception)
+BooleanStep* BooleanField::addStep(int step, int stamp)
 {
     if (hasStep(step))
         throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists.");
@@ -53,8 +50,7 @@ throw (XAO_Exception)
     return bstep;
 }
 
-BooleanStep* BooleanField::getStep(const int& index)
-throw (XAO_Exception)
+BooleanStep* BooleanField::getStep(int index)
 {
     checkStepIndex(index);
     return (BooleanStep*)m_steps[index];