mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 20:42:25 +00:00
Reduce the use of unsafe in corelib and in the rust backend
This commit is contained in:
parent
bbb2b487b9
commit
30b201d946
12 changed files with 89 additions and 122 deletions
|
@ -26,3 +26,10 @@ struct VRef {
|
|||
const void *instance;
|
||||
};
|
||||
*/
|
||||
|
||||
template<typename Base, typename T>
|
||||
struct VOffset
|
||||
{
|
||||
const T *vtable;
|
||||
uintptr_t offset;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue