Cleanup: Use StringRef instead of std::string for node declaration #107911

Closed
Iliya Katushenock wants to merge 2 commits from mod_moder:tmp_use_string_ref_in_socket_declarations into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 4 additions and 4 deletions

View File

@ -21,12 +21,12 @@ NODE_STORAGE_FUNCS(NodeAccumulateField)
static void node_declare(NodeDeclarationBuilder &b)
{
std::string value_in_description = N_("The values to be accumulated");
std::string leading_out_description = N_(
const StringRef value_in_description = N_("The values to be accumulated");
const StringRef leading_out_description = N_(
"The running total of values in the corresponding group, starting at the first value");
std::string trailing_out_description = N_(
const StringRef trailing_out_description = N_(
"The running total of values in the corresponding group, starting at zero");
std::string total_out_description = N_(
const StringRef total_out_description = N_(
"The total of all of the values in the corresponding group");
b.add_input<decl::Vector>("Value", "Value Vector")