Cleanup: use StringRefNull instead of std::string for instance reference name
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user