mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
AK+Everywhere: Delete Variant's default constructor
This was exposed to the user by mistake, and even accumulated a bunch of users that didn't blow up out of sheer luck.
This commit is contained in:
parent
90e6b9d453
commit
15f95220ae
6 changed files with 29 additions and 11 deletions
|
@ -10,11 +10,13 @@
|
|||
namespace SQL {
|
||||
|
||||
Value::Value(SQLType sql_type)
|
||||
: m_impl(0)
|
||||
{
|
||||
setup(sql_type);
|
||||
}
|
||||
|
||||
Value::Value(SQLType sql_type, ByteBuffer& buffer, size_t& offset)
|
||||
: m_impl(0)
|
||||
{
|
||||
setup(sql_type);
|
||||
m_deserialize(buffer, offset);
|
||||
|
@ -22,6 +24,7 @@ Value::Value(SQLType sql_type, ByteBuffer& buffer, size_t& offset)
|
|||
}
|
||||
|
||||
Value::Value(Value const& other)
|
||||
: m_impl(0)
|
||||
{
|
||||
setup(other.type());
|
||||
m_is_null = other.is_null();
|
||||
|
|
|
@ -102,7 +102,7 @@ private:
|
|||
SQLType m_type { SQLType::Text };
|
||||
bool m_is_null { true };
|
||||
|
||||
Variant<String, int, double> m_impl {};
|
||||
Variant<String, int, double> m_impl;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue