Cleanup: use StringRefNull instead of std::string for instance reference name

This commit is contained in:
Jacques Lucke
2024-07-09 18:56:09 +02:00
parent 39d509f91f
commit 57f1d959d4
2 changed files with 3 additions and 2 deletions

View File

@@ -26,6 +26,7 @@
#include "BLI_index_mask_fwd.hh"
#include "BLI_math_matrix_types.hh"
#include "BLI_shared_cache.hh"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "BLI_virtual_array_fwd.hh"
@@ -94,7 +95,7 @@ class InstanceReference {
*/
void to_geometry_set(GeometrySet &r_geometry_set) const;
std::string name() const;
StringRefNull name() const;
bool owns_direct_data() const;
void ensure_owns_direct_data();

View File

@@ -96,7 +96,7 @@ void InstanceReference::to_geometry_set(GeometrySet &r_geometry_set) const
}
}
std::string InstanceReference::name() const
StringRefNull InstanceReference::name() const
{
switch (type_) {
case Type::Object: