mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
More MSVC warnings fixes
This commit is contained in:
parent
c25d41526a
commit
63cf84d21f
3 changed files with 4 additions and 4 deletions
|
@ -350,7 +350,7 @@ SCENARIO("Invoke callback")
|
|||
auto instance = result->create();
|
||||
REQUIRE(instance->set_callback("foo", [](auto args) {
|
||||
SharedString arg1 = *args[0].to_string();
|
||||
int arg2 = *args[1].to_number();
|
||||
double arg2 = *args[1].to_number();
|
||||
std::string res = std::string(arg1) + ":" + std::to_string(arg2);
|
||||
return Value(SharedString(res));
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue