Cleanup: Draw: Use StringRef for function argument

This commit is contained in:
Hans Goudey
2025-05-08 13:09:01 -04:00
parent 75f55a9e8e
commit d018c12b61
2 changed files with 4 additions and 2 deletions

View File

@@ -8,6 +8,8 @@
#pragma once
#include "BLI_string_ref.hh"
struct ARegion;
struct DRWData;
struct DRWInstanceDataList;
@@ -189,6 +191,6 @@ void DRW_gpu_context_activate(bool drw_state);
void DRW_cdlayer_attr_aliases_add(GPUVertFormat *format,
const char *base_name,
int data_type,
const char *layer_name,
blender::StringRef layer_name,
bool is_active_render,
bool is_active_layer);

View File

@@ -646,7 +646,7 @@ void DRW_batch_cache_free_old(Object *ob, int ctime)
void DRW_cdlayer_attr_aliases_add(GPUVertFormat *format,
const char *base_name,
const int data_type,
const char *layer_name,
const blender::StringRef layer_name,
bool is_active_render,
bool is_active_layer)
{