1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-14 01:45:35 +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 ////////////////////////////////////////////////////////////////////////// // IO //////////////////////////////////////////////////////////////////////////
void AsciiFile::close(void) void AsciiFile::close(void)
{ {
state_.reset(nullptr); state_.reset();
if (isOpen()) if (isOpen())
{ {
fileStream_.close(); fileStream_.close();
@ -181,7 +181,7 @@ void AsciiFile::open(const string &name, const unsigned int mode)
} }
else else
{ {
state_.reset(nullptr); state_.reset();
} }
} }
} }

View File

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