mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Run clang-format over C++ files
This commit is contained in:
parent
1884497308
commit
ca6dfc0cb5
12 changed files with 141 additions and 107 deletions
|
@ -205,7 +205,10 @@ public:
|
|||
}
|
||||
/// Returns an iterator that when compared with an iterator returned by begin() can be
|
||||
/// used to detect when all fields have been visited.
|
||||
iterator end() const { return iterator(); }
|
||||
iterator end() const
|
||||
{
|
||||
return iterator();
|
||||
}
|
||||
|
||||
/// Returns the value of the field with the given \a name; Returns an std::optional without
|
||||
/// value if the field does not exist.
|
||||
|
@ -454,10 +457,7 @@ inline Value::Value(const std::shared_ptr<slint::Model<Value>> &model)
|
|||
{
|
||||
cbindgen_private::slint_interpreter_model_notify_row_removed(¬ify, index, count);
|
||||
}
|
||||
void reset() override
|
||||
{
|
||||
cbindgen_private::slint_interpreter_model_notify_reset(¬ify);
|
||||
}
|
||||
void reset() override { cbindgen_private::slint_interpreter_model_notify_reset(¬ify); }
|
||||
};
|
||||
|
||||
auto wrapper = std::make_shared<ModelWrapper>();
|
||||
|
@ -492,7 +492,8 @@ inline Value::Value(const std::shared_ptr<slint::Model<Value>> &model)
|
|||
};
|
||||
|
||||
static const ModelAdaptorVTable vt { row_count, row_data, set_row_data, get_notify, drop };
|
||||
cbindgen_private::slint_interpreter_value_new_model(reinterpret_cast<uint8_t *>(wrapper.get()), &vt, &inner);
|
||||
cbindgen_private::slint_interpreter_value_new_model(reinterpret_cast<uint8_t *>(wrapper.get()),
|
||||
&vt, &inner);
|
||||
}
|
||||
|
||||
inline Struct::Struct(std::initializer_list<std::pair<std::string_view, Value>> args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue