diff options
author | Julian Eisel <julian@blender.org> | 2020-08-14 17:38:45 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-08-14 18:03:10 +0300 |
commit | c074943dfd914fafd25f59cd43e26b4e8ac499f0 (patch) | |
tree | 66e4a6d06738b27bf410c9803041f17a41ed28dc /source/blender/editors/space_view3d | |
parent | 77e4905b171a57bfe6e4e92864747534cdba9f53 (diff) |
Fix undefined behavior with --debug-xr
Mistake in cb578ca1048d3. Before that, the extension vector was static,
to make sure the extension name strings wouldn't get destructed when
leaving the function. I didn't think that was an issue and couldn't
recreate one, because until the previous commit we wouldn't actually
add any extensions to the vector on Windows (the system I tested
with).
Use C++17's `std::string_view` now, which avoids the string copies
`std::string` creates for itself and thus its destruction when leaving
the local scope.
Diffstat (limited to 'source/blender/editors/space_view3d')
0 files changed, 0 insertions, 0 deletions