mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
C++: Permit passing a value to VectorModel::set_vector by value (#4491)
The previous signature would not allow that, but we should allow it for consistency with the constructor.
This commit is contained in:
parent
e4c087c5b0
commit
45f182e666
2 changed files with 5 additions and 1 deletions
|
@ -538,7 +538,7 @@ public:
|
|||
}
|
||||
|
||||
/// Replaces the underlying VectorModel's vector with \a array.
|
||||
void set_vector(std::vector<ModelData> &&array)
|
||||
void set_vector(std::vector<ModelData> array)
|
||||
{
|
||||
data = std::move(array);
|
||||
this->reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue