@ -77,11 +77,11 @@ struct CommandAuxiliarySerialisable : public CommandAuxiliaryBase {
template <typename T>
struct CommandAuxData {
private:
opt::optional<T> store;
const T *data = nullptr;
public:
inline CommandCost Load(const CommandAuxiliaryBase *base)
{
if (base == nullptr) return CMD_ERROR;
@ -33,7 +33,7 @@ class UniformArenaAllocator {
used_blocks.push_back(current_block);
}
UniformArenaAllocator() = default;
UniformArenaAllocator(const UniformArenaAllocator &other) = delete;
UniformArenaAllocator& operator=(const UniformArenaAllocator &other) = delete;
@ -34,7 +34,7 @@ class DynUniformArenaAllocator {
DynUniformArenaAllocator() = default;
DynUniformArenaAllocator(const DynUniformArenaAllocator &other) = delete;
DynUniformArenaAllocator& operator=(const DynUniformArenaAllocator &other) = delete;
@ -33,7 +33,7 @@ class PodPool {
PodPool() = default;
PodPool(const PodPool &other) = delete;
PodPool& operator=(const PodPool &other) = delete;
@ -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
uint16 min_version;
uint16 max_version;
SlXvFeatureIndex feature;
SlXvFeatureTestOperator op;
TestFunctorPtr functor = nullptr;
SlXvFeatureTest()
: min_version(0), max_version(0), feature(XSLFI_NULL), op(XSLFTO_OR) { }
@ -18,7 +18,7 @@ class scope_exit_obj {
bool shouldexec;
scope_exit_obj(T &&func)
: f(std::move(func)), shouldexec(true) { }
@ -1099,7 +1099,7 @@ struct TraceRestrictSlot : TraceRestrictSlotPool::PoolItem<&_tracerestrictslot_p
void Clear();
void UpdateSignals();
void DeIndex(VehicleID id);
};