occt: master 395a5977

Author Committer Branch Timestamp Parent
msv bugmaster master 2018-05-23 07:18:49 master ef33df51
Affected Issues  0029777: Foundation Classes - The methods of moving of one NCollection_Sequence to another are unsafe
Changeset 0029777: Foundation Classes - The methods of moving of one NCollection_Sequence to another are unsafe

Make the methods Append, Prepend, InsertBefore and InsertAfter, which take another sequence as an argument, copying the sequence instead of joining if the allocators are different.

Add test cases for collection classes.
mod - src/NCollection/NCollection_List.hxx Diff File
mod - src/NCollection/NCollection_Sequence.hxx Diff File
mod - src/QANCollection/QANCollection_Test.cxx Diff File
add - tests/collections/n/array1 Diff File
add - tests/collections/n/array2 Diff File
add - tests/collections/n/arrayMove Diff File
add - tests/collections/n/dblmap Diff File
add - tests/collections/n/dmap Diff File
add - tests/collections/n/idmap Diff File
add - tests/collections/n/imap Diff File
add - tests/collections/n/list Diff File
add - tests/collections/n/seq Diff File
add - tests/collections/n/vector Diff File