mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibSQL: Remove infallible type conversions from SQL::Value
Force the callers to either know that the type is convertible, or to handle the conversion failure.
This commit is contained in:
parent
af3980384b
commit
7d41b46a7d
Notes:
sideshowbarker
2024-07-17 05:48:30 +09:00
Author: https://github.com/trflynn89
Commit: 7d41b46a7d
Pull-request: https://github.com/SerenityOS/serenity/pull/15312
Reviewed-by: https://github.com/alimpfard
8 changed files with 22 additions and 64 deletions
|
@ -78,12 +78,6 @@ public:
|
|||
[[nodiscard]] Optional<bool> to_bool() const;
|
||||
[[nodiscard]] Optional<Vector<Value>> to_vector() const;
|
||||
|
||||
explicit operator String() const;
|
||||
explicit operator int() const;
|
||||
explicit operator u32() const;
|
||||
explicit operator double() const;
|
||||
explicit operator bool() const;
|
||||
|
||||
void assign(Value const& other_value);
|
||||
void assign(String const& string_value);
|
||||
void assign(int int_value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue