Skip to content

Commit

Permalink
Minor cleanup in MaxTimestep.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Jun 14, 2021
1 parent 58dfa19 commit 496d939
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/util/MaxTimestep.cc
Expand Up @@ -32,14 +32,14 @@ MaxTimestep::MaxTimestep(double v)
// empty
}

MaxTimestep::MaxTimestep(const std::string &new_description)
: m_finite(false), m_value(0.0), m_description(new_description) {
// empty
MaxTimestep::MaxTimestep(const std::string &description)
: MaxTimestep() {
m_description = description;
}

MaxTimestep::MaxTimestep(double v, const std::string &new_description)
: m_finite(true), m_value(v), m_description(new_description) {
// empty
MaxTimestep::MaxTimestep(double v, const std::string &description)
: MaxTimestep(v) {
m_description = description;
}

bool MaxTimestep::finite() const {
Expand Down

0 comments on commit 496d939

Please sign in to comment.