mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
cpp: Do not produce warnings when using the UIntModel
This commit is contained in:
parent
9fcce74b2f
commit
9af756bf3f
1 changed files with 1 additions and 1 deletions
|
|
@ -777,7 +777,7 @@ struct UIntModel : Model<int>
|
|||
{
|
||||
if (value >= row_count())
|
||||
return {};
|
||||
return value;
|
||||
return static_cast<int>(value);
|
||||
}
|
||||
};
|
||||
} // namespace private_api
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue