C++: Platform::register_platform -> platform::set_platform

This commit is contained in:
Olivier Goffart 2023-07-25 16:02:39 +02:00 committed by Olivier Goffart
parent 42bb2bf705
commit 69a11f7dbc
4 changed files with 32 additions and 34 deletions

View file

@ -83,7 +83,7 @@ struct TestPlatform : slint_platform::Platform
#endif
};
bool init_platform = (TestPlatform::register_platform(std::make_unique<TestPlatform>()), true);
bool init_platform = (slint_platform::set_platform(std::make_unique<TestPlatform>()), true);
TEST_CASE("C++ Singleshot Timers")
{