mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
Everywhere: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes
This commit is contained in:
parent
2ebd79bc76
commit
0184fc5e43
4 changed files with 14 additions and 22 deletions
|
@ -75,6 +75,9 @@ enum class SQLErrorCode {
|
|||
};
|
||||
|
||||
class [[nodiscard]] Result {
|
||||
AK_MAKE_NONCOPYABLE(Result);
|
||||
AK_MAKE_DEFAULT_MOVABLE(Result);
|
||||
|
||||
public:
|
||||
ALWAYS_INLINE Result(SQLCommand command)
|
||||
: m_command(command)
|
||||
|
@ -100,9 +103,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
Result(Result&&) = default;
|
||||
Result& operator=(Result&&) = default;
|
||||
|
||||
SQLCommand command() const { return m_command; }
|
||||
SQLErrorCode error() const { return m_error; }
|
||||
DeprecatedString error_string() const;
|
||||
|
@ -120,8 +120,6 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
AK_MAKE_NONCOPYABLE(Result);
|
||||
|
||||
SQLCommand m_command { SQLCommand::Unknown };
|
||||
|
||||
SQLErrorCode m_error { SQLErrorCode::NoError };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue