LingmoOS / LingmoOS/lib_lingmo

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

Open
#14 0 comments 0 reactions 1 assignee View on GitHub

@elysia-best is already working on this.

Since Dec 14, 2024.

bug
Dominant language
C++
Stars
0
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.