1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

Codefix: Codestyle consistency fixes.

This commit is contained in:
2025-04-15 21:13:38 +01:00
parent 03ed59a004
commit 7fb60c2d4b
4 changed files with 9 additions and 12 deletions

View File

@@ -67,8 +67,7 @@ public:
/** /**
* Compose data into a growing std::string. * Compose data into a growing std::string.
*/ */
class StringBuilder final : public BaseStringBuilder class StringBuilder final : public BaseStringBuilder {
{
std::string *dest; std::string *dest;
public: public:
/** /**

View File

@@ -18,8 +18,7 @@
/** /**
* Builder implementation for InPlaceReplacement. * Builder implementation for InPlaceReplacement.
*/ */
class InPlaceBuilder final : public BaseStringBuilder class InPlaceBuilder final : public BaseStringBuilder {
{
std::span<char> dest; std::span<char> dest;
size_type position = 0; size_type position = 0;
const StringConsumer &consumer; const StringConsumer &consumer;
@@ -90,8 +89,7 @@ public:
* - The Builder writes data to the buffer, replacing already consumed data. * - The Builder writes data to the buffer, replacing already consumed data.
* - The Builder asserts, if it overtakes the consumer. * - The Builder asserts, if it overtakes the consumer.
*/ */
class InPlaceReplacement class InPlaceReplacement {
{
public: public:
StringConsumer consumer; ///< Consumer from shared buffer StringConsumer consumer; ///< Consumer from shared buffer
InPlaceBuilder builder; ///< Builder into shared buffer InPlaceBuilder builder; ///< Builder into shared buffer