Skip to content

Commit

Permalink
[MPL] Remove duplicate vector resize
Browse files Browse the repository at this point in the history
Size is already set in the constructor.
  • Loading branch information
endJunction committed Apr 25, 2024
1 parent a198480 commit bc2ec4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion MaterialLib/MPL/Properties/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ static std::vector<exprtk::expression<T>> compileExpressions(
exprtk::parser<T> parser;

std::vector<exprtk::expression<T>> expressions(string_expressions.size());
expressions.resize(string_expressions.size());
for (unsigned i = 0; i < string_expressions.size(); ++i)
{
expressions[i].register_symbol_table(symbol_table);
Expand Down

0 comments on commit bc2ec4c

Please sign in to comment.