Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[EDF29093] : Quick fix resorbed
[modules/kernel.git]
/
src
/
SALOMEDS
/
SALOMEDS_AttributeSequenceOfReal_i.cxx
diff --git
a/src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx
b/src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx
index f918b8e6d30ec3b27a601b057a310cbe9dc49354..e07ed0b87282126ba570a02a82dce55eca7e50af 100644
(file)
--- a/
src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx
+++ b/
src/SALOMEDS/SALOMEDS_AttributeSequenceOfReal_i.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
13 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
23 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-6,7
+6,7
@@
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-32,11
+32,9
@@
void SALOMEDS_AttributeSequenceOfReal_i::Assign(const SALOMEDS::DoubleSeq& other
{
SALOMEDS::Locker lock;
CheckLocked();
{
SALOMEDS::Locker lock;
CheckLocked();
- std::vector<double> CasCadeSeq;
- for (int i = 0; i < other.length(); i++) {
- CasCadeSeq.push_back(other[i]);
- }
- dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_impl)->Assign(CasCadeSeq);
+ std::vector<double> aSeq;
+ for(int i = 0, len = other.length(); i<len; i++) aSeq.push_back(other[i]);
+ dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_impl)->Assign(aSeq);
}
SALOMEDS::DoubleSeq* SALOMEDS_AttributeSequenceOfReal_i::CorbaSequence()
}
SALOMEDS::DoubleSeq* SALOMEDS_AttributeSequenceOfReal_i::CorbaSequence()
@@
-44,9
+42,9
@@
SALOMEDS::DoubleSeq* SALOMEDS_AttributeSequenceOfReal_i::CorbaSequence()
SALOMEDS::Locker lock;
SALOMEDS::DoubleSeq_var CorbaSeq = new SALOMEDS::DoubleSeq;
const std::vector<double>& CasCadeSeq = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_impl)->Array();
SALOMEDS::Locker lock;
SALOMEDS::DoubleSeq_var CorbaSeq = new SALOMEDS::DoubleSeq;
const std::vector<double>& CasCadeSeq = dynamic_cast<SALOMEDSImpl_AttributeSequenceOfReal*>(_impl)->Array();
-
in
t len = CasCadeSeq.size();
+
size_
t len = CasCadeSeq.size();
CorbaSeq->length(len);
CorbaSeq->length(len);
- for (
in
t i = 0; i < len; i++) {
+ for (
size_
t i = 0; i < len; i++) {
CorbaSeq[i] = CasCadeSeq[i];
}
return CorbaSeq._retn();
CorbaSeq[i] = CasCadeSeq[i];
}
return CorbaSeq._retn();