Skip to content

Commit

Permalink
Rename local variable to avoid shadowing in SolveEquation.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
devin-ai-integration[bot] committed May 7, 2024
1 parent fb7d32a commit 5a43f27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/Arithmetics/SolveEquation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ SolveEquation::SolveEquation( const std::wstring& equation )
: equation_(equation)
{
using namespace omnn::math;
std::string s(equation.begin(), equation.end());
std::string_view sv(s);
std::string equation_str(equation.begin(), equation.end());
std::string_view sv(equation_str);
auto& varHost = VarHost::Global<std::string>();
auto varHostPtr = varHost.sh();
Valuable eq(sv, varHostPtr);
Expand Down

0 comments on commit 5a43f27

Please sign in to comment.