Rationalize selection element name handling.
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 2 Aug 2012 19:13:24 +0000 (22:13 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Tue, 28 Aug 2012 03:34:01 +0000 (06:34 +0300)
commit32bd4d6270336b40b1190b93c296f11136ad0518
tree8b787f857409f1c1fb2e608287c886d6e37e6772
parentd0b64b0b3420bb210cdd275a77c7f6b6eb66c867
Rationalize selection element name handling.

The name of SelectionTreeElement is now a plain std::string that manages
its own memory instead of pointing to memory managed somewhere else.
The original design has been a pain to maintain at times, as the memory
for the name easily gets freed, leaving a dangling pointer.

Change-Id: I7b975c67ce9eee7f981128e29d8d9dd75fc70c89
src/gromacs/selection/compiler.cpp
src/gromacs/selection/params.cpp
src/gromacs/selection/parser.cpp
src/gromacs/selection/parser.y
src/gromacs/selection/parsetree.cpp
src/gromacs/selection/selection.cpp
src/gromacs/selection/selectioncollection.cpp
src/gromacs/selection/selelem.cpp
src/gromacs/selection/selelem.h