0024863: CLang warnings -Wint-to-void-pointer-cast
authorski <ski@opencascade.com>
Thu, 7 Aug 2014 10:31:10 +0000 (14:31 +0400)
committerapv <apv@opencascade.com>
Thu, 7 Aug 2014 10:33:28 +0000 (14:33 +0400)
commit1951a27c9866854705f92212ce6304e553675268
tree979e9435d7d202be3cd2c5687f4f7561f3b73563
parentde9a2842e1b2b625a1674d73c035c9d340b57c99
0024863: CLang warnings -Wint-to-void-pointer-cast

Warning was fixed.

Remarks were applied.

- class VMap in Draw was removed
- NCollection_DataMap is used to store objects
- name of object is used to associate Tcl variable with the object
- creation and changing of objects are correclty handled

Redundant casts were removed.

Initial value is restored if variable is protected.
Tests for bug #24863 were added.

Some test cases and tcl command "save" were improved.

Useless using of upvar was removed.
19 files changed:
src/Draw/Draw.cdl
src/Draw/Draw_VariableCommands.cxx
src/DrawResources/StandardCommands.tcl
tests/bugs/fclasses/bug24863_1 [new file with mode: 0644]
tests/bugs/fclasses/bug24863_2 [new file with mode: 0644]
tests/bugs/fclasses/bug24863_3 [new file with mode: 0644]
tests/bugs/modalg_2/bug298
tests/bugs/modalg_2/bug410_4
tests/bugs/modalg_2/bug485
tests/bugs/modalg_2/bug487
tests/bugs/modalg_2/bug5805_1
tests/bugs/moddata_2/bug23165
tests/bugs/moddata_2/bug332
tests/bugs/xde/bug945
tests/caf/nam/A5
tests/geometry/begin
tests/mesh/end
tests/offset/faces_type_i/C9
tests/xml/begin