@@ -599,17 +599,17 @@ int objectIsView(QObject_ *object)
599
599
return qobject->inherits (" QQuickView" ) ? 1 : 0 ;
600
600
}
601
601
602
- error *objectGoAddr (QObject_ *object, GoAddr **addr )
602
+ error *objectGoRef (QObject_ *object, GoRef *ref )
603
603
{
604
604
QObject *qobject = static_cast <QObject *>(object);
605
605
if (qobject->inherits (" GoValue" )) {
606
606
GoValue *goValue = static_cast <GoValue *>(qobject);
607
- *addr = goValue->addr ;
607
+ *ref = goValue->ref ;
608
608
return 0 ;
609
609
}
610
610
if (qobject->inherits (" GoPaintedValue" )) {
611
611
GoPaintedValue *goPaintedValue = static_cast <GoPaintedValue *>(qobject);
612
- *addr = goPaintedValue->addr ;
612
+ *ref = goPaintedValue->ref ;
613
613
return 0 ;
614
614
}
615
615
return errorf (" QML object is not backed by a Go value" );
@@ -627,13 +627,13 @@ void delString(QString_ *s)
627
627
delete reinterpret_cast <QString *>(s);
628
628
}
629
629
630
- GoValue_ *newGoValue (GoAddr *addr , GoTypeInfo *typeInfo, QObject_ *parent)
630
+ GoValue_ *newGoValue (GoRef ref , GoTypeInfo *typeInfo, QObject_ *parent)
631
631
{
632
632
QObject *qparent = reinterpret_cast <QObject *>(parent);
633
633
if (typeInfo->paint ) {
634
- return new GoPaintedValue (addr , typeInfo, qparent);
634
+ return new GoPaintedValue (ref , typeInfo, qparent);
635
635
}
636
- return new GoValue (addr , typeInfo, qparent);
636
+ return new GoValue (ref , typeInfo, qparent);
637
637
}
638
638
639
639
void goValueActivate (GoValue_ *value, GoTypeInfo *typeInfo, int addrOffset)
@@ -813,12 +813,12 @@ void packDataValue(QVariant_ *var, DataValue *value)
813
813
QObject *qobject = qvar->value <QObject *>();
814
814
if (qobject->inherits (" GoValue" )) {
815
815
value->dataType = DTGoAddr;
816
- *(void ** )(value->data ) = (static_cast <GoValue*>(qobject))->addr ;
816
+ *(uintptr_t * )(value->data ) = (static_cast <GoValue*>(qobject))->ref ;
817
817
break ;
818
818
}
819
819
if (qobject->inherits (" GoPaintedValue" )) {
820
820
value->dataType = DTGoAddr;
821
- *(void ** )(value->data ) = (static_cast <GoPaintedValue*>(qobject))->addr ;
821
+ *(uintptr_t * )(value->data ) = (static_cast <GoPaintedValue*>(qobject))->ref ;
822
822
break ;
823
823
}
824
824
value->dataType = DTObject;
@@ -876,28 +876,28 @@ QVariantList_ *newVariantList(DataValue *list, int len)
876
876
877
877
QObject *listPropertyAt (QQmlListProperty<QObject> *list, int i)
878
878
{
879
- return reinterpret_cast <QObject *>(hookListPropertyAt (list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 , i));
879
+ return reinterpret_cast <QObject *>(hookListPropertyAt (( uintptr_t ) list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 , i));
880
880
}
881
881
882
882
int listPropertyCount (QQmlListProperty<QObject> *list)
883
883
{
884
- return hookListPropertyCount (list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 );
884
+ return hookListPropertyCount (( uintptr_t ) list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 );
885
885
}
886
886
887
887
void listPropertyAppend (QQmlListProperty<QObject> *list, QObject *obj)
888
888
{
889
- hookListPropertyAppend (list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 , obj);
889
+ hookListPropertyAppend (( uintptr_t ) list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 , obj);
890
890
}
891
891
892
892
void listPropertyClear (QQmlListProperty<QObject> *list)
893
893
{
894
- hookListPropertyClear (list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 );
894
+ hookListPropertyClear (( uintptr_t ) list->data , (intptr_t )list->dummy1 , (intptr_t )list->dummy2 );
895
895
}
896
896
897
- QQmlListProperty_ *newListProperty (GoAddr *addr , intptr_t reflectIndex, intptr_t setIndex)
897
+ QQmlListProperty_ *newListProperty (GoRef ref , intptr_t reflectIndex, intptr_t setIndex)
898
898
{
899
899
QQmlListProperty<QObject> *list = new QQmlListProperty<QObject>();
900
- list->data = addr ;
900
+ list->data = ( void *)ref ;
901
901
list->dummy1 = (void *)reflectIndex;
902
902
list->dummy2 = (void *)setIndex;
903
903
list->at = listPropertyAt;
0 commit comments