diff --git a/src/MullCharState.cpp b/src/MullCharState.cpp index a34508f..2183722 100644 --- a/src/MullCharState.cpp +++ b/src/MullCharState.cpp @@ -16,7 +16,9 @@ #include MullCharState::MullCharState(const char expected) - : expected_{ expected }, successState_{}, failState_{} {} + : expected_{ expected }, successState_{}, failState_{} +{ +} void MullCharState::next(StringStateMachine* stateMachine) { diff --git a/src/MullData.cpp b/src/MullData.cpp index 1a9b73b..1ecaed0 100644 --- a/src/MullData.cpp +++ b/src/MullData.cpp @@ -16,7 +16,9 @@ #include MullData::MullData() - : isEnabled_{ true }, factor1_{ 0 }, factor2_{ 0 }, part1_{ 0 }, part2_{ 0 } {}; + : isEnabled_{ true }, factor1_{ 0 }, factor2_{ 0 }, part1_{ 0 }, part2_{ 0 } +{ +}; bool MullData::getIsEnabled() { diff --git a/src/MullFactorState.cpp b/src/MullFactorState.cpp index d87482f..d74721a 100644 --- a/src/MullFactorState.cpp +++ b/src/MullFactorState.cpp @@ -16,7 +16,9 @@ #include MullFactorState::MullFactorState(const char expected, const int index) - : expected_{ expected }, index_{ index }, successState_{}, failState_{} {} + : expected_{ expected }, index_{ index }, successState_{}, failState_{} +{ +} void MullFactorState::enter(StringStateMachine* stateMachine) { diff --git a/src/MullItOver.cpp b/src/MullItOver.cpp index 4492d7a..c203ecc 100644 --- a/src/MullItOver.cpp +++ b/src/MullItOver.cpp @@ -18,9 +18,9 @@ #include MullItOver::MullItOver() - : Solver{}, data_{}, states_ { - data_ -} {} + : Solver{}, data_{}, states_ { data_ } +{ +} const std::string MullItOver::getPuzzleName() const { diff --git a/src/MullToggleCloseState.cpp b/src/MullToggleCloseState.cpp index 2f1b216..ee88baf 100644 --- a/src/MullToggleCloseState.cpp +++ b/src/MullToggleCloseState.cpp @@ -16,7 +16,9 @@ #include MullToggleCloseState::MullToggleCloseState(const bool isEnabler) - : isEnabler_{ isEnabler }, successState_{} {} + : isEnabler_{ isEnabler }, successState_{} +{ +} void MullToggleCloseState::next(StringStateMachine* stateMachine) { diff --git a/src/Point2.cpp b/src/Point2.cpp index 87e959d..a944240 100644 --- a/src/Point2.cpp +++ b/src/Point2.cpp @@ -28,10 +28,14 @@ const Point2 Point2::directions[] = { Point2::down, Point2::downRight, Point2::r const Point2 Point2::cardinalDirections[] = { Point2::down, Point2::right, Point2::up, Point2::left }; Point2::Point2() - : Point2{ 0, 0 } {} + : Point2{ 0, 0 } +{ +} Point2::Point2(const int x, const int y) - : x{ x }, y{ y } {} + : x{ x }, y{ y } +{ +} bool Point2::operator==(const Point2& rhs) const { diff --git a/src/Solver.cpp b/src/Solver.cpp index 35f1fc4..316c1cc 100644 --- a/src/Solver.cpp +++ b/src/Solver.cpp @@ -16,7 +16,9 @@ #include Solver::Solver() - : part1{ 0 }, part2{ 0 } {} + : part1{ 0 }, part2{ 0 } +{ +} long long int Solver::getResultPart1() const { diff --git a/src/SolverEngine.cpp b/src/SolverEngine.cpp index f179d1a..1f2792b 100644 --- a/src/SolverEngine.cpp +++ b/src/SolverEngine.cpp @@ -19,7 +19,9 @@ #include SolverEngine::SolverEngine(const std::vector& inputPaths) - : inputPaths_{ inputPaths } {} + : inputPaths_{ inputPaths } +{ +} void SolverEngine::run(Solver& solver) {