Blender Git Loki

Git Commits -> Revision c074943

Revision c074943 by Julian Eisel (master)
August 14, 2020, 15:03 (GMT)
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.

Commit Details:

Full Hash: c074943dfd914fafd25f59cd43e26b4e8ac499f0
Parent Commit: 77e4905
Lines Changed: +5, -4

1 Modified Path:

/intern/ghost/intern/GHOST_XrContext.cpp (+5, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021