summaryrefslogtreecommitdiff
path: root/editor/icons
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2019-10-23 14:52:29 +0200
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2019-10-24 08:18:34 +0200
commitce352ce5b4f0e4718ba3ecd1b12d59854b617182 (patch)
tree6f8ca86a9e15748b72021b576cc29e3d1e32b4ca /editor/icons
parent35944aebdeb4c3b5869aaeedaaded02397b7ce92 (diff)
Initialise VMap and HashMap values to the default when they are created.
Assigns a default value in VMap and HashMap when new keys are created using the array operator so they are the same as the other Map classes. The non const version of the array operator can be used for both assigning a value and retrieving a writeable version. In the Map template classes the assign version is being used to create new keys, but sometimes not assigning a value when retrieving a writeable version. This does not address the problem that the default value may not be the correct one, and it does not address the problem that new keys probably should not be created when the array operator is used. These problems will be addressed in a separate commit.
Diffstat (limited to 'editor/icons')
0 files changed, 0 insertions, 0 deletions