Don't use Str_Copy in PathDirectory::internName as this makes a "full copy", allocating storage equal to the reserved size in the source string.
My first thought was to implement a "squeeze" method (in Qt parlance) but as ddstring_t allocates from the Zone and the fact many subsystems rely on the ability to simply "forget" about them - I figured it best to leave it alone, instead of needlessly fragmenting the Zone for a few bytes per string.
Don't use Str_Copy in PathDirectory::internName as this makes a "full copy", allocating storage equal to the reserved size in the source string.
My first thought was to implement a "squeeze" method (in Qt parlance) but as ddstring_t allocates from the Zone and the fact many subsystems rely on the ability to simply "forget" about them - I figured it best to leave it alone, instead of needlessly fragmenting the Zone for a few bytes per string.