From: Braden M. <br...@us...> - 2007-05-13 00:46:34
|
Update of /cvsroot/openvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26352 Modified Files: ChangeLog Log Message: In order to be thread-safe, scene::nodes and grouping_node::children must return a copy of the vector rather than a const reference. Index: ChangeLog =================================================================== RCS file: /cvsroot/openvrml/openvrml/ChangeLog,v retrieving revision 1.1496 retrieving revision 1.1497 diff -C2 -d -r1.1496 -r1.1497 *** ChangeLog 12 May 2007 03:43:42 -0000 1.1496 --- ChangeLog 13 May 2007 00:46:33 -0000 1.1497 *************** *** 1,2 **** --- 1,39 ---- + 2007-05-12 Braden McDaniel <br...@en...> + + In order to be thread-safe, scene::nodes and + grouping_node::children must return a copy of the vector rather + than a const reference. + + * src/libopenvrml/openvrml/browser.cpp + (openvrml::scene::nodes() const): Return the vector of nodes as a + copy. As a consequence of this, the function could throw + std::bad_alloc. + * src/libopenvrml/openvrml/browser.h + (openvrml::scene): Changed nodes accessor to return a copy of the + node vector. + * src/libopenvrml/openvrml/node.cpp + (openvrml::grouping_node::children() const): Return the vector of + nodes as a copy. As a consequence of this, the function could + throw std::bad_alloc. + * src/libopenvrml/openvrml/node.h + (openvrml::grouping_node): Changed children and do_children + members to return the node vector by copy (rather than by const + reference). + * src/libopenvrml/openvrml/vrml97node.cpp + (grouping_node_base): Changed do_children member to return the + node vector by copy. + (inline_node): Changed do_children member to return the node + vector by copy. + (lod_node): Changed do_children member to return the node vector + by copy. + (switch_node): Changed do_children member to return the node + vector by copy. + * src/libopenvrml/openvrml/x3d_cad_geometry.cpp + (cad_face_node): Changed do_children member to return the node + vector by copy. + * src/libopenvrml/openvrml/x3d_grouping.cpp + (static_group_node): Changed do_children member to return the node + vector by copy. + 2007-05-11 Braden McDaniel <br...@en...> |