1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 00:45:36 +00:00

no need to specify nullptr in pointer reset

This commit is contained in:
Antonin Portelli 2014-02-13 23:14:28 +00:00
parent 47b9789f84
commit 0b2aee8704
2 changed files with 5 additions and 5 deletions

View File

@ -138,7 +138,7 @@ bool AsciiFile::isOpen() const
// IO //////////////////////////////////////////////////////////////////////////
void AsciiFile::close(void)
{
state_.reset(nullptr);
state_.reset();
if (isOpen())
{
fileStream_.close();
@ -181,7 +181,7 @@ void AsciiFile::open(const string &name, const unsigned int mode)
}
else
{
state_.reset(nullptr);
state_.reset();
}
}
}

View File

@ -350,10 +350,10 @@ void MathInterpreter::setCode(const std::string &code)
void MathInterpreter::reset(void)
{
code_.reset(nullptr);
code_.reset();
codeName_ = "<no_code>";
state_.reset(nullptr);
root_.reset(nullptr);
state_.reset();
root_.reset();
program_.clear();
status_ = 0;
}