Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'BR_LAND_COVER_MAP' of ssh://git.salome-platform.org/modules/hydro into...
[modules/hydro.git]
/
src
/
HYDROPy
/
HYDROData_SequenceOfObjects.sip
diff --git
a/src/HYDROPy/HYDROData_SequenceOfObjects.sip
b/src/HYDROPy/HYDROData_SequenceOfObjects.sip
index be9b94cc356d14722af614fc388d238d9952470f..141a5279aa35da5ad382bae6ceaac87d063036ad 100644
(file)
--- a/
src/HYDROPy/HYDROData_SequenceOfObjects.sip
+++ b/
src/HYDROPy/HYDROData_SequenceOfObjects.sip
@@
-1,12
+1,8
@@
-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, 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) 2014-2015 EDF-R&D
// 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
@@
-38,7
+34,7
@@
return NULL;
// Set the list elements.
return NULL;
// Set the list elements.
- for (int i =
0; i <
sipCpp->Length(); ++i)
+ for (int i =
1; i <=
sipCpp->Length(); ++i)
{
HYDROData_Entity* aPntr = createPointer(sipCpp->Value(i));
{
HYDROData_Entity* aPntr = createPointer(sipCpp->Value(i));
@@
-54,7
+50,7
@@
return NULL;
}
return NULL;
}
- PyList_SET_ITEM(l, i, tobj);
+ PyList_SET_ITEM(l, i
- 1
, tobj);
}
return l;
}
return l;
@@
-83,7
+79,7
@@
return 1;
}
return 1;
}
- NCollection_Sequence<Handle_HYDROData_Entity> *
ql
=
+ NCollection_Sequence<Handle_HYDROData_Entity> *
aSeq
=
new NCollection_Sequence<Handle_HYDROData_Entity>;
len = PySequence_Size(sipPy);
new NCollection_Sequence<Handle_HYDROData_Entity>;
len = PySequence_Size(sipPy);
@@
-100,17
+96,17
@@
{
sipReleaseType(t, sipType_HYDROData_Entity, state);
{
sipReleaseType(t, sipType_HYDROData_Entity, state);
- delete
ql
;
+ delete
aSeq
;
return 0;
}
Handle_HYDROData_Entity anEnt( t );
return 0;
}
Handle_HYDROData_Entity anEnt( t );
-
ql
->Append( anEnt );
+
aSeq
->Append( anEnt );
//sipReleaseType(t, sipType_HYDROData_Entity, state);
}
//sipReleaseType(t, sipType_HYDROData_Entity, state);
}
- *sipCppPtr =
ql
;
+ *sipCppPtr =
aSeq
;
return sipGetState(sipTransferObj);
%End
return sipGetState(sipTransferObj);
%End