Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: invalid conversion from 'long long int (*)(QQmlListProperty<DeclarativeAdapter>*)' to 'QQmlListProperty<DeclarativeAdapter>::CountFunction' {aka 'int (*)(QQmlListProperty<DeclarativeAdapter>*)'} #14

Open
1 of 3 tasks
elysia-best opened this issue Dec 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@elysia-best
Copy link
Contributor

Note: for support questions, please use Community. This repository's issues are reserved for feature requests and bug reports.

  • I'm submitting a ...
    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.
[   95s] /usr/src/packages/BUILD/bluez/declarativemanager.cpp: In member function 'QQmlListProperty<DeclarativeAdapter> DeclarativeManager::declarativeAdapters()':
[   95s] /usr/src/packages/BUILD/bluez/declarativemanager.cpp:78:64: error: invalid conversion from 'long long int (*)(QQmlListProperty<DeclarativeAdapter>*)' to 'QQmlListProperty<DeclarativeAdapter>::CountFunction' {aka 'int (*)(QQmlListProperty<DeclarativeAdapter>*)'} [-fpermissive]
[   95s]    78 |     return QQmlListProperty<DeclarativeAdapter>(this, nullptr, adaptersCountFunction, adaptersAtFunction);
[   95s]       |                                                                ^~~~~~~~~~~~~~~~~~~~~
[   95s]       |                                                                |
[   95s]       |                                                                long long int (*)(QQmlListProperty<DeclarativeAdapter>*)
[   95s] In file included from /usr/include/i386-linux-gnu/qt6/QtQml/QQmlListProperty:1,
[   95s]                  from /usr/src/packages/BUILD/bluez/declarativemanager.h:13,
[   95s]                  from /usr/src/packages/BUILD/bluez/declarativemanager.cpp:9:
[   95s] /usr/include/i386-linux-gnu/qt6/QtQml/qqmllist.h:66:57: note:   initializing argument 3 of 'QQmlListProperty<T>::QQmlListProperty(QObject*, void*, CountFunction, AtFunction) [with T = DeclarativeAdapter; CountFunction = int (*)(QQmlListProperty<DeclarativeAdapter>*); AtFunction = DeclarativeAdapter* (*)(QQmlListProperty<DeclarativeAdapter>*, int)]'
[   95s]    66 |     QQmlListProperty(QObject *o, void *d, CountFunction c, AtFunction a)
[   95s]       |                                           ~~~~~~~~~~~~~~^
[   95s] /usr/src/packages/BUILD/bluez/declarativemanager.cpp:78:87: error: invalid conversion from 'DeclarativeAdapter* (*)(QQmlListProperty<DeclarativeAdapter>*, long long int)' to 'QQmlListProperty<DeclarativeAdapter>::AtFunction' {aka 'DeclarativeAdapter* (*)(QQmlListProperty<DeclarativeAdapter>*, int)'} [-fpermissive]
[   95s]    78 |     return QQmlListProperty<DeclarativeAdapter>(this, nullptr, adaptersCountFunction, adaptersAtFunction);
[   95s]       |                                                                                       ^~~~~~~~~~~~~~~~~~
[   95s]       |                                                                                       |
[   95s]       |                                                                                       DeclarativeAdapter* (*)(QQmlListProperty<DeclarativeAdapter>*, long long int)
[   95s] /usr/include/i386-linux-gnu/qt6/QtQml/qqmllist.h:66:71: note:   initializing argument 4 of 'QQmlListProperty<T>::QQmlListProperty(QObject*, void*, CountFunction, AtFunction) [with T = DeclarativeAdapter; CountFunction = int (*)(QQmlListProperty<DeclarativeAdapter>*); AtFunction = DeclarativeAdapter* (*)(QQmlListProperty<DeclarativeAdapter>*, int)]'
[   95s]    66 |     QQmlListProperty(QObject *o, void *d, CountFunction c, AtFunction a)
[   95s]       |                                                            ~~~~~~~~~~~^
[   95s] /usr/src/packages/BUILD/bluez/declarativemanager.cpp: In member function 'QQmlListProperty<DeclarativeDevice> DeclarativeManager::declarativeDevices()':
[   95s] /usr/src/packages/BUILD/bluez/declarativemanager.cpp:83:63: error: invalid conversion from 'long long int (*)(QQmlListProperty<DeclarativeDevice>*)' to 'QQmlListProperty<DeclarativeDevice>::CountFunction' {aka 'int (*)(QQmlListProperty<DeclarativeDevice>*)'} [-fpermissive]
[   95s]    83 |     return QQmlListProperty<DeclarativeDevice>(this, nullptr, devicesCountFunction, devicesAtFunction);
[   95s]       |                                                               ^~~~~~~~~~~~~~~~~~~~
[   95s]       |                                                               |
[   95s]       |                                                               long long int (*)(QQmlListProperty<DeclarativeDevice>*)
[   95s] /usr/include/i386-linux-gnu/qt6/QtQml/qqmllist.h:66:57: note:   initializing argument 3 of 'QQmlListProperty<T>::QQmlListProperty(QObject*, void*, CountFunction, AtFunction) [with T = DeclarativeDevice; CountFunction = int (*)(QQmlListProperty<DeclarativeDevice>*); AtFunction = DeclarativeDevice* (*)(QQmlListProperty<DeclarativeDevice>*, int)]'
[   95s]    66 |     QQmlListProperty(QObject *o, void *d, CountFunction c, AtFunction a)
[   95s]       |                                           ~~~~~~~~~~~~~~^
[   95s] /usr/src/packages/BUILD/bluez/declarativemanager.cpp:83:85: error: invalid conversion from 'DeclarativeDevice* (*)(QQmlListProperty<DeclarativeDevice>*, long long int)' to 'QQmlListProperty<DeclarativeDevice>::AtFunction' {aka 'DeclarativeDevice* (*)(QQmlListProperty<DeclarativeDevice>*, int)'} [-fpermissive]
[   95s]    83 |     return QQmlListProperty<DeclarativeDevice>(this, nullptr, devicesCountFunction, devicesAtFunction);
[   95s]       |                                                                                     ^~~~~~~~~~~~~~~~~
[   95s]       |                                                                                     |
[   95s]       |                                                                                     DeclarativeDevice* (*)(QQmlListProperty<DeclarativeDevice>*, long long int)
[   95s] /usr/include/i386-linux-gnu/qt6/QtQml/qqmllist.h:66:71: note:   initializing argument 4 of 'QQmlListProperty<T>::QQmlListProperty(QObject*, void*, CountFunction, AtFunction) [with T = DeclarativeDevice; CountFunction = int (*)(QQmlListProperty<DeclarativeDevice>*); AtFunction = DeclarativeDevice* (*)(QQmlListProperty<DeclarativeDevice>*, int)]'
[   95s]    66 |     QQmlListProperty(QObject *o, void *d, CountFunction c, AtFunction a)
[   95s]       |                                                            ~~~~~~~~~~~^
[   95s] make[3]: *** [bluez/CMakeFiles/lingmobluez_qmlplugins.dir/build.make:100: bluez/CMakeFiles/lingmobluez_qmlplugins.dir/declarativemanager.cpp.o] Error 1
[   95s] make[3]: Leaving directory '/usr/src/packages/BUILD/obj-i686-linux-gnu'
[   95s] make[2]: *** [CMakeFiles/Makefile2:365: bluez/CMakeFiles/lingmobluez_qmlplugins.dir/all] Error 2
@elysia-best elysia-best self-assigned this Dec 14, 2024
@elysia-best elysia-best added the bug Something isn't working label Dec 14, 2024
@elysia-best elysia-best transferred this issue from LingmoOS/lingmo-core Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

1 participant