summaryrefslogtreecommitdiffstats
path: root/src/core/String.cpp
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@darkstarsystems.com>2018-03-13 10:07:50 -0400
committerGary Oberbrunner <garyo@darkstarsystems.com>2018-03-13 11:00:25 -0400
commita6689b21322e976488aa7482aafb748b47ca8158 (patch)
treeaa4a563c4cd14d3366c4720f3f38b9b881091d61 /src/core/String.cpp
parent4a9e305776a9a182dd29b22789cf5c8e5174a0d5 (diff)
downloadredot-cpp-a6689b21322e976488aa7482aafb748b47ca8158.tar.gz
Make all Pool*Array::operator[] as const
This is needed since that operator returns a local copy, not an lvalue. Attempting to write to the return value of these operators wouldn't change the array element. PoolVectors need locking when writing, so this operator can't return a writable reference. To update a Pool*Array, use the `set()` method which locks and unlocks the array. For multiple writes, use the `write()` method which returns a locked writable view, and unlocks when it goes out of scope.
Diffstat (limited to 'src/core/String.cpp')
0 files changed, 0 insertions, 0 deletions