Remove stray semicolons after declarations

This commit is contained in:
matheusvb3 committed 2026-01-16 12:43:59 -03:00
1 parent 292bf40b23
commit f6cbfb91f8
20 files changed
+28 -28

No files matched your search

+1 -1
View File
@@ -225,4 +225,4 @@ namespace OpenRCT2::UnicodeChar
// Misc
constexpr char32_t superscript_minus_one = 0x207B;
}; // namespace OpenRCT2::UnicodeChar
} // namespace OpenRCT2::UnicodeChar
+1 -1
View File
@@ -407,5 +407,5 @@ namespace OpenRCT2::Drawing
return ImageImportMeta{ { xOffset, yOffset }, palette, flags, ImportMode::Default, { srcX, srcY },
{ srcWidth, srcHeight }, zoomedOffset };
};
}
} // namespace OpenRCT2::Drawing
+1 -1
View File
@@ -78,7 +78,7 @@ namespace OpenRCT2::Drawing::ScrollingText
_characterBitmaps[i][x] = val;
}
}
};
}
static void initialiseScrollingText()
{
+1 -1
View File
@@ -171,7 +171,7 @@ static std::optional<std::string> ScreenshotGetNextPath()
LOG_ERROR("You have too many saved screenshots saved at exactly the same date and time.");
return std::nullopt;
};
}
std::string ScreenshotDumpPNG(RenderTarget& rt)
{
+2 -2
View File
@@ -24,7 +24,7 @@ namespace OpenRCT2::Network
namespace TickFlags
{
constexpr uint16_t kChecksums = 1 << 0;
};
}
enum class Mode : int32_t
{
@@ -36,7 +36,7 @@ namespace OpenRCT2::Network
namespace PlayerFlags
{
constexpr uint16_t kIsServer = 1 << 0;
};
}
enum class Status : int32_t
{
+1 -1
View File
@@ -75,7 +75,7 @@ namespace OpenRCT2
bool ObjectEntryDescriptor::HasValue() const
{
return Generation != ObjectGeneration::JSON || !Identifier.empty();
};
}
ObjectType ObjectEntryDescriptor::GetType() const
{
+2 -2
View File
@@ -44,7 +44,7 @@ namespace OpenRCT2
constexpr uint8_t AlwaysRequired = (1 << 4);
constexpr uint8_t Flag6 = (1 << 5);
constexpr uint8_t AllFlags = 0xFF;
}; // namespace ObjectSelectionFlags
} // namespace ObjectSelectionFlags
#pragma pack(push, 1)
/**
@@ -224,7 +224,7 @@ namespace OpenRCT2
ObjectGeneration GetGeneration() const
{
return _generation;
};
}
ObjectType GetObjectType() const
{
+2 -2
View File
@@ -50,7 +50,7 @@ namespace OpenRCT2
outerSegments = (outerSegments * 0x0202020202 & 0x010884422010) % 1023; // reverse the bits, std::byteswap is c++23
outerSegments = Numerics::rol8(outerSegments, 3);
return (segments & EnumToFlag(PaintSegment::centre)) | outerSegments;
};
}
enum class BlockedSegmentsType : uint8_t
{
@@ -63,7 +63,7 @@ namespace OpenRCT2
constexpr std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegmentsAllTypes(const uint16_t segments)
{
return { segments, segments, segments };
};
}
constexpr std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegmentsRotate(
std::array<uint16_t, kBlockedSegmentsTypeCount> blockedSegments, const uint8_t rotation)
@@ -2835,7 +2835,7 @@ static void SideFrictionRCTrackDiag25DegDownTo60DegDown(
{
SideFrictionRCTrackDiag60DegUpTo25DegUp(
session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType);
};
}
static void SideFrictionRCTrackDiag25DegUpTo60DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
@@ -2907,7 +2907,7 @@ static void SideFrictionRCTrackDiag60DegDownTo25DegDown(
{
SideFrictionRCTrackDiag25DegUpTo60DegUp(
session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement, supportType);
};
}
TrackPaintFunction GetTrackPaintFunctionSideFrictionRC(TrackElemType trackType)
{
@@ -147,7 +147,7 @@ static const TrackElement* ChairliftPaintUtilMapGetTrackElementAtFromRideFuzzy(
} while (!(tileElement++)->IsLastForTile());
return nullptr;
};
}
static bool ChairliftPaintUtilIsFirstTrack(
const Ride& ride, const TrackElement& trackElement, const CoordsXY& pos, TrackElemType trackType)
+1 -1
View File
@@ -101,7 +101,7 @@ namespace OpenRCT2
constexpr uint32_t PREVIEW = 0x39;
constexpr uint32_t PACKED_OBJECTS = 0x80;
// clang-format on
}; // namespace ParkFileChunkType
} // namespace ParkFileChunkType
class ParkFile
{
+1 -1
View File
@@ -35,4 +35,4 @@ namespace OpenRCT2::PathFinding
int32_t GuestPathFindParkEntranceLeaving(Peep& peep, uint8_t edges);
}; // namespace OpenRCT2::PathFinding
} // namespace OpenRCT2::PathFinding
+1 -1
View File
@@ -165,7 +165,7 @@ namespace OpenRCT2::ShelteredSectionsBits
constexpr uint8_t kNumShelteredSectionsMask = 0b00011111;
constexpr uint8_t kRotatingWhileSheltered = 0b00100000;
constexpr uint8_t kBankingWhileSheltered = 0b01000000;
}; // namespace OpenRCT2::ShelteredSectionsBits
} // namespace OpenRCT2::ShelteredSectionsBits
struct TrackDesign;
struct TrackDesignState;
+1 -1
View File
@@ -489,7 +489,7 @@ bool ScenarioCreateDucks()
const random_engine_t::state_type& ScenarioRandState()
{
return getGameState().scenarioRand.state();
};
}
void ScenarioRandSeed(random_engine_t::result_type s0, random_engine_t::result_type s1)
{
@@ -225,6 +225,6 @@ namespace OpenRCT2::Scripting
entity->Invalidate();
}
}
}; // namespace OpenRCT2::Scripting
} // namespace OpenRCT2::Scripting
#endif
@@ -49,6 +49,6 @@ namespace OpenRCT2::Scripting
void Launch(const DukValue& value);
};
}; // namespace OpenRCT2::Scripting
} // namespace OpenRCT2::Scripting
#endif
+2 -2
View File
@@ -250,7 +250,7 @@ struct CoordsXY
constexpr bool IsNull() const
{
return x == kCoordsNull;
};
}
constexpr void SetNull()
{
@@ -449,7 +449,7 @@ struct TileCoordsXY
constexpr bool IsNull() const
{
return x == kCoordsNull;
};
}
constexpr void SetNull()
{
+4 -4
View File
@@ -2018,7 +2018,7 @@ TileElement* MapGetTrackElementAtOfTypeFromRide(const CoordsXYZ& trackPos, Track
} while (!(tileElement++)->IsLastForTile());
return nullptr;
};
}
/**
* Gets the track element at x, y, z that is the given track type and sequence.
@@ -2045,7 +2045,7 @@ TileElement* MapGetTrackElementAtFromRide(const CoordsXYZ& trackPos, RideId ride
} while (!(tileElement++)->IsLastForTile());
return nullptr;
};
}
TileElement* MapGetTrackElementAtBeforeSurfaceFromRide(const CoordsXYZ& trackPos, const RideId rideIndex)
{
@@ -2068,7 +2068,7 @@ TileElement* MapGetTrackElementAtBeforeSurfaceFromRide(const CoordsXYZ& trackPos
} while (!(tileElement++)->IsLastForTile());
return nullptr;
};
}
/**
* Gets the track element at x, y, z that is the given track type and sequence.
@@ -2098,7 +2098,7 @@ TileElement* MapGetTrackElementAtWithDirectionFromRide(const CoordsXYZD& trackPo
} while (!(tileElement++)->IsLastForTile());
return nullptr;
};
}
WallElement* MapGetWallElementAt(const CoordsXYRangedZ& coords)
{
@@ -37,7 +37,7 @@ namespace OpenRCT2
constexpr uint8_t Centre = 0;
constexpr uint8_t Left = 1;
constexpr uint8_t Right = 2;
}; // namespace EntranceSequence
} // namespace EntranceSequence
#pragma pack(push, 1)
struct EntranceElement;
+1 -1
View File
@@ -15,4 +15,4 @@ namespace TestData
{
std::string GetBasePath();
std::string GetParkPath(std::string name);
}; // namespace TestData
} // namespace TestData