Fix constructor code formatting
This commit is contained in:
parent
22c858dd59
commit
ab7aa394dc
|
@ -16,7 +16,9 @@
|
|||
#include <aoc/MullCharState.hpp>
|
||||
|
||||
MullCharState::MullCharState(const char expected)
|
||||
: expected_{ expected }, successState_{}, failState_{} {}
|
||||
: expected_{ expected }, successState_{}, failState_{}
|
||||
{
|
||||
}
|
||||
|
||||
void MullCharState::next(StringStateMachine* stateMachine)
|
||||
{
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include <aoc/MullData.hpp>
|
||||
|
||||
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()
|
||||
{
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include <aoc/MullFactorState.hpp>
|
||||
|
||||
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)
|
||||
{
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
#include <aoc/StringStateMachine.hpp>
|
||||
|
||||
MullItOver::MullItOver()
|
||||
: Solver{}, data_{}, states_ {
|
||||
data_
|
||||
} {}
|
||||
: Solver{}, data_{}, states_ { data_ }
|
||||
{
|
||||
}
|
||||
|
||||
const std::string MullItOver::getPuzzleName() const
|
||||
{
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include <aoc/MullToggleCloseState.hpp>
|
||||
|
||||
MullToggleCloseState::MullToggleCloseState(const bool isEnabler)
|
||||
: isEnabler_{ isEnabler }, successState_{} {}
|
||||
: isEnabler_{ isEnabler }, successState_{}
|
||||
{
|
||||
}
|
||||
|
||||
void MullToggleCloseState::next(StringStateMachine* stateMachine)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include <aoc/Solver.hpp>
|
||||
|
||||
Solver::Solver()
|
||||
: part1{ 0 }, part2{ 0 } {}
|
||||
: part1{ 0 }, part2{ 0 }
|
||||
{
|
||||
}
|
||||
|
||||
long long int Solver::getResultPart1() const
|
||||
{
|
||||
|
|
|
@ -19,7 +19,9 @@
|
|||
#include <iostream>
|
||||
|
||||
SolverEngine::SolverEngine(const std::vector<std::string>& inputPaths)
|
||||
: inputPaths_{ inputPaths } {}
|
||||
: inputPaths_{ inputPaths }
|
||||
{
|
||||
}
|
||||
|
||||
void SolverEngine::run(Solver& solver)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue