Skip to content

Commit

Permalink
Use release on unique_ptr instead of setting it to nullptr
Browse files Browse the repository at this point in the history
    * XSC/be/CXX/Inline.cpp:
  • Loading branch information
jwillemsen committed Aug 30, 2024
1 parent 21fdf1c commit 5cb9c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XSC/be/CXX/Inline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@ namespace
os << "if (s." << name << "_)" << std::endl
<< " " << name << " (*(s." << name << "_));"
<< "else" << std::endl
<< " " << name << "_.reset (nullptr);"
<< " " << name << "_.release ();"
<< endl;
}
else
Expand Down Expand Up @@ -1235,7 +1235,7 @@ namespace
{
os << "if (s." << name << "_) "
<< name << " (*(s." << name << "_));"
<< "else " << name << "_.reset (nullptr);"
<< "else " << name << "_.release ();"
<< endl;
}
else
Expand Down

0 comments on commit 5cb9c43

Please sign in to comment.