X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXAO%2FXAO_DoubleField.cxx;h=c2f4b84cc1fef5c259b50a1225f3f1bac53ec456;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=e0a66493544994ca8ae473d5e24e7990d004b98c;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/XAO/XAO_DoubleField.cxx b/src/XAO/XAO_DoubleField.cxx index e0a664935..c2f4b84cc 100644 --- a/src/XAO/XAO_DoubleField.cxx +++ b/src/XAO/XAO_DoubleField.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2013-2019 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2013-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -24,25 +24,25 @@ using namespace XAO; -DoubleField::DoubleField(const XAO::Dimension& dimension, const int& nbElements, const int& nbComponents, const std::string& name) +DoubleField::DoubleField(XAO::Dimension dimension, int nbElements, int nbComponents, const std::string& name) : Field(dimension, nbElements, nbComponents, name) { } -Step* DoubleField::addNewStep(const int& step) -throw (XAO_Exception) +Step* DoubleField::addNewStep(int step) + { return addStep(step, 0); } -DoubleStep* DoubleField::addStep(const int& step) -throw (XAO_Exception) +DoubleStep* DoubleField::addStep(int step) + { return addStep(step, 0); } -DoubleStep* DoubleField::addStep(const int& step, const int& stamp) -throw (XAO_Exception) +DoubleStep* DoubleField::addStep(int step, int stamp) + { if (hasStep(step)) throw XAO_Exception(MsgBuilder() << "Step with number " << step << " already exists."); @@ -52,8 +52,8 @@ throw (XAO_Exception) return bstep; } -DoubleStep* DoubleField::getStep(const int& index) -throw (XAO_Exception) +DoubleStep* DoubleField::getStep(int index) + { checkStepIndex(index); return (DoubleStep*)m_steps[index];