mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
C++: use default operator==
Since we now use C++20, we can simplify our code a bit
This commit is contained in:
parent
36e07b8801
commit
319704d3fb
8 changed files with 13 additions and 75 deletions
|
@ -400,12 +400,6 @@ public:
|
|||
{
|
||||
return cbindgen_private::sixtyfps_interpreter_value_eq(&a.inner, &b.inner);
|
||||
}
|
||||
/// Returns true if \a and \b hold values of the same type and the underlying vales are not
|
||||
/// equal.
|
||||
friend bool operator!=(const Value &a, const Value &b)
|
||||
{
|
||||
return !cbindgen_private::sixtyfps_interpreter_value_eq(&a.inner, &b.inner);
|
||||
}
|
||||
|
||||
private:
|
||||
inline Value(const void *) = delete; // Avoid that for example Value("foo") turns to Value(bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue