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:
@@ -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:
|
||||||
/**
|
/**
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user