mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove unnecessary default constructor definitions
This commit is contained in:
@@ -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>(); }
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user