diff --git a/src/io/HMpsFF.cpp b/src/io/HMpsFF.cpp index 8d96484ddb..4be74d5230 100644 --- a/src/io/HMpsFF.cpp +++ b/src/io/HMpsFF.cpp @@ -225,11 +225,11 @@ bool HMpsFF::getMpsLine(std::istream& file, std::string& strline, bool& skip) { // Remove any trailing comment const size_t p = strline.find_first_of(mps_comment_chars); if (p <= strline.length()) { - // A comment character has been found, so erase from it to the end - // of the line and check whether the line is now empty - strline.erase(p); - skip = is_empty(strline); - if (skip) return true; + // A comment character has been found, so erase from it to the end + // of the line and check whether the line is now empty + strline.erase(p); + skip = is_empty(strline); + if (skip) return true; } } strline = trim(strline); diff --git a/src/lp_data/HighsOptions.h b/src/lp_data/HighsOptions.h index 208bcd1802..df45d4de87 100644 --- a/src/lp_data/HighsOptions.h +++ b/src/lp_data/HighsOptions.h @@ -555,7 +555,7 @@ struct HighsOptionsStruct { #endif mip_improving_solution_save(false), mip_improving_solution_report_sparse(false), - mip_improving_solution_file("") {}; + mip_improving_solution_file(""){}; }; // For now, but later change so HiGHS properties are string based so that new diff --git a/src/mip/HighsMipSolver.cpp b/src/mip/HighsMipSolver.cpp index 6f871813b6..fc39b94f97 100644 --- a/src/mip/HighsMipSolver.cpp +++ b/src/mip/HighsMipSolver.cpp @@ -45,7 +45,6 @@ HighsMipSolver::HighsMipSolver(HighsCallback& callback, pscostinit(nullptr), clqtableinit(nullptr), implicinit(nullptr) { - if (solution.value_valid) { // MIP solver doesn't check row residuals, but they should be OK // so validate using assert diff --git a/src/util/HFactor.h b/src/util/HFactor.h index 03cb8d8b1d..2f75260d8a 100644 --- a/src/util/HFactor.h +++ b/src/util/HFactor.h @@ -132,7 +132,7 @@ class HFactor { build_timer_(nullptr), nwork(0), u_merit_x(0), - u_total_x(0) {}; + u_total_x(0){}; /** * @brief Copy problem size and pointers of constraint matrix, and set