Remove unnecessary default constructor definitions

This commit is contained in:
Rangi42
2025-02-14 16:35:27 +01:00
committed by Rangi
parent 1489854932
commit ad4d9da4cf
2 changed files with 0 additions and 18 deletions

View File

@@ -22,15 +22,6 @@ struct Expression {
std::vector<uint8_t> rpn{}; // Bytes serializing the RPN expression std::vector<uint8_t> rpn{}; // Bytes serializing the RPN expression
uint32_t rpnPatchSize = 0; // Size the expression will take in the object file uint32_t rpnPatchSize = 0; // Size the expression will take in the object file
Expression() = default;
Expression(Expression &&) = default;
#ifdef _MSC_VER
// MSVC and WinFlexBison won't build without this...
Expression(Expression const &) = default;
#endif
Expression &operator=(Expression &&) = default;
bool isKnown() const { return data.holds<int32_t>(); } bool isKnown() const { return data.holds<int32_t>(); }
int32_t value() const { return data.get<int32_t>(); } int32_t value() const { return data.get<int32_t>(); }

View File

@@ -31,15 +31,6 @@
struct StrFmtArgList { struct StrFmtArgList {
std::string format; std::string format;
std::vector<Either<uint32_t, std::string>> args; std::vector<Either<uint32_t, std::string>> args;
StrFmtArgList() = default;
StrFmtArgList(StrFmtArgList &&) = default;
#ifdef _MSC_VER
// MSVC and WinFlexBison won't build without this...
StrFmtArgList(StrFmtArgList const &) = default;
#endif
StrFmtArgList &operator=(StrFmtArgList &&) = default;
}; };
} }