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:
parent
47b9789f84
commit
0b2aee8704
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user