mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Fix build: Add missing non-const arrow/deref operators for VRc/Component
This commit is contained in:
parent
e97ecea480
commit
661f23760b
2 changed files with 10 additions and 0 deletions
|
@ -124,6 +124,12 @@ public:
|
|||
const X& operator*() const {
|
||||
return inner->data;
|
||||
}
|
||||
X* operator->() {
|
||||
return &inner->data;
|
||||
}
|
||||
X& operator*() {
|
||||
return inner->data;
|
||||
}
|
||||
|
||||
VRc<VTable, Dyn> into_dyn() const { return *reinterpret_cast<const VRc<VTable, Dyn> *>(this); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue