summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-05-11 10:35:45 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-05-12 11:26:27 -0700
commitafead4e749794e6d0f6b9cb9bd7897face64104a (patch)
tree95e375dbf3c4d4c8ad3cf59c50b176dc532e131e /test
parent54e26b20e7d64e1c4497ef3c411230fe708851b6 (diff)
downloadqtlocation-mapboxgl-afead4e749794e6d0f6b9cb9bd7897face64104a.tar.gz
[core] Return {Source,Layer}::getID by value
Avoid dangling references in the following sequence: auto& id = layer->getID(); layer->setMaxZoom(2); std::cout << id; The reference would be dangling because mutating the layer allocates a new Immutable impl, and there may be no references to the prior impl, which held the id.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions