diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-17 13:38:15 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-17 13:38:15 +0300 |
commit | 0e3d34e48f5d5ed3845b1858a66008ab87c55af8 (patch) | |
tree | f52b983a632e11233662bacb7b469d9b6e4663c2 /source/blender/blenkernel/intern/simulation.cc | |
parent | 0fcd23a3880f0caf4a683203b486d451991edb2d (diff) |
BLI: add StringRefNull.c_str() method
This should be used whenever you rely on the fact, that the
returned pointer points to the beginning of a null-terminated array.
Diffstat (limited to 'source/blender/blenkernel/intern/simulation.cc')
-rw-r--r-- | source/blender/blenkernel/intern/simulation.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/simulation.cc b/source/blender/blenkernel/intern/simulation.cc index b57d85e66ad..fdb0f0b235f 100644 --- a/source/blender/blenkernel/intern/simulation.cc +++ b/source/blender/blenkernel/intern/simulation.cc @@ -399,7 +399,7 @@ static void add_missing_particle_states(Simulation *simulation, Span<std::string continue; } - BKE_simulation_state_add(simulation, SIM_STATE_TYPE_PARTICLES, name.data()); + BKE_simulation_state_add(simulation, SIM_STATE_TYPE_PARTICLES, name.c_str()); } } |