Skip to content

Commit

Permalink
fix(style): Fix function spacing in the source files (endless-sky#10080)
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetiroka authored May 21, 2024
1 parent fd42e96 commit 65cc375
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 9 deletions.
2 changes: 2 additions & 0 deletions source/AI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2009,6 +2009,7 @@ bool AI::CanRefuel(const Ship &ship, const StellarObject *target)
}



// Set the ship's target system or planet in order to reach the
// next desired system. Will target a landable planet to refuel.
// If the ship is an escort it will only use routes known to the player.
Expand Down Expand Up @@ -3777,6 +3778,7 @@ double AI::RendezvousTime(const Point &p, const Point &v, double vp)
}



// Searches every asteroid within the ship scan limit and returns either the
// asteroid closest to the ship or the asteroid of highest value in range, depending
// on the player's preferences.
Expand Down
2 changes: 2 additions & 0 deletions source/Color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ Color Color::Additive(float alpha) const
return result;
}



Color Color::Combine(float a1, Color c1, float a2, Color c2)
{
return Color(
Expand Down
1 change: 1 addition & 0 deletions source/Dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ namespace {
}



Dialog::Dialog(function<void()> okFunction, const string &message, Truncate truncate, bool canCancel, bool okIsActive)
: voidFun(okFunction)
{
Expand Down
1 change: 0 additions & 1 deletion source/Files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ void Files::CreateFolder(const std::string &path)




// Open this user's plugins directory in their native file explorer.
void Files::OpenUserPluginFolder()
{
Expand Down
1 change: 0 additions & 1 deletion source/Hardpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ bool Hardpoint::IsTurret() const




bool Hardpoint::IsParallel() const
{
return isParallel;
Expand Down
1 change: 0 additions & 1 deletion source/Hazard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ int Hazard::RandomDuration() const




// Generates a random double between the minimum and maximum strength of this hazard.
double Hazard::RandomStrength() const
{
Expand Down
1 change: 0 additions & 1 deletion source/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,6 @@ void Interface::BarElement::Draw(const Rectangle &rect, const Information &info,




// Members of the PointerElement class:

// Constructor.
Expand Down
1 change: 0 additions & 1 deletion source/Personality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ bool Personality::IsDaring() const




bool Personality::IsFrugal() const
{
return flags.test(FRUGAL);
Expand Down
1 change: 0 additions & 1 deletion source/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ const string &Preferences::AutoFireSetting()




void Preferences::ToggleBoarding()
{
int targetIndex = boardingIndex + 1;
Expand Down
1 change: 1 addition & 0 deletions source/Ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,7 @@ int Ship::CustomSwizzle() const
}



// Check if the ship is thrusting. If so, the engine sound should be played.
bool Ship::IsThrusting() const
{
Expand Down
1 change: 0 additions & 1 deletion source/ShipEvent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const Government *ShipEvent::TargetGovernment() const




int ShipEvent::Type() const
{
return type;
Expand Down
1 change: 0 additions & 1 deletion source/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ const Government *System::GetGovernment() const




// Get the name of the ambient audio to play in this system.
const string &System::MusicName() const
{
Expand Down
1 change: 0 additions & 1 deletion source/Wormhole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ const System &Wormhole::WormholeSource(const System &to) const




const System &Wormhole::WormholeDestination(const System &from) const
{
auto it = links.find(&from);
Expand Down

0 comments on commit 65cc375

Please sign in to comment.