Formatting: Fix indentation of public/private specifiers

This commit is contained in:
Jonathan G Rennison
2023-02-28 01:44:28 +00:00
parent 0a8c58b755
commit 88d7a8ea13
7 changed files with 9 additions and 9 deletions

View File

@@ -77,11 +77,11 @@ struct CommandAuxiliarySerialisable : public CommandAuxiliaryBase {
template <typename T>
struct CommandAuxData {
private:
private:
opt::optional<T> store;
const T *data = nullptr;
public:
public:
inline CommandCost Load(const CommandAuxiliaryBase *base)
{
if (base == nullptr) return CMD_ERROR;

View File

@@ -33,7 +33,7 @@ class UniformArenaAllocator {
used_blocks.push_back(current_block);
}
public:
public:
UniformArenaAllocator() = default;
UniformArenaAllocator(const UniformArenaAllocator &other) = delete;
UniformArenaAllocator& operator=(const UniformArenaAllocator &other) = delete;

View File

@@ -34,7 +34,7 @@ class DynUniformArenaAllocator {
used_blocks.push_back(current_block);
}
public:
public:
DynUniformArenaAllocator() = default;
DynUniformArenaAllocator(const DynUniformArenaAllocator &other) = delete;
DynUniformArenaAllocator& operator=(const DynUniformArenaAllocator &other) = delete;

View File

@@ -33,7 +33,7 @@ class PodPool {
used_blocks.push_back(current_block);
}
public:
public:
PodPool() = default;
PodPool(const PodPool &other) = delete;
PodPool& operator=(const PodPool &other) = delete;

View File

@@ -170,14 +170,14 @@ enum SlXvFeatureTestOperator {
struct SlXvFeatureTest {
using TestFunctorPtr = bool (*)(uint16, bool, const std::array<uint16, XSLFI_SIZE> &); ///< Return true if feature present, first parameter is standard savegame version, second is whether standard savegame version is within bounds
private:
private:
uint16 min_version;
uint16 max_version;
SlXvFeatureIndex feature;
SlXvFeatureTestOperator op;
TestFunctorPtr functor = nullptr;
public:
public:
SlXvFeatureTest()
: min_version(0), max_version(0), feature(XSLFI_NULL), op(XSLFTO_OR) { }

View File

@@ -18,7 +18,7 @@ class scope_exit_obj {
bool shouldexec;
public:
public:
scope_exit_obj(T &&func)
: f(std::move(func)), shouldexec(true) { }

View File

@@ -1099,7 +1099,7 @@ struct TraceRestrictSlot : TraceRestrictSlotPool::PoolItem<&_tracerestrictslot_p
void Clear();
void UpdateSignals();
private:
private:
void DeIndex(VehicleID id);
};