mirror of https://github.com/OpenTTD/OpenTTD
Fix: inconsistent definition of copy constructor and assignment
parent
6dfd2cad69
commit
20a9e13272
|
@ -529,7 +529,6 @@ void check_format_string(S);
|
|||
|
||||
struct error_handler {
|
||||
constexpr error_handler() = default;
|
||||
constexpr error_handler(const error_handler&) = default;
|
||||
|
||||
// This function is intentionally not constexpr to give a compile-time error.
|
||||
FMT_NORETURN FMT_API void on_error(const char* message);
|
||||
|
|
|
@ -10,6 +10,7 @@ struct SQClassMember {
|
|||
val = o.val;
|
||||
attrs = o.attrs;
|
||||
}
|
||||
SQClassMember& operator=(SQClassMember &o) = delete;
|
||||
SQObjectPtr val;
|
||||
SQObjectPtr attrs;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue