[KPhotoAlbum] New compile errors

Johannes Zarl-Zierl johannes at zarl-zierl.at
Tue Jun 5 23:01:19 BST 2018


Hi Robert,

I don't get the errors on git master.
I'll have a look at the source and see if I can find something odd there...

Cheers,
  Johannes

Am Samstag, 26. Mai 2018, 18:47:26 CEST schrieb Robert Krawitz:
> [  1%] Building CXX object
> CMakeFiles/kphotoalbum.dir/RemoteControl/RemoteConnection.cpp.o In file
> included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
>                  from /usr/include/qt5/QtCore/qobjectdefs.h:48,
>                  from /usr/include/qt5/QtCore/qobject.h:46,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp: In member
> function ‘void RemoteControl::RemoteConnection::dataReceived()’:
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52:
> error: no matching function for call to ‘asString(qint32&)’ << ": Received
> " << qPrintable(id); ^
> In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /usr/include/qt5/QtCore/qstring.h:1862:23: note: candidate: const QString&
> QtPrivate::asString(const QString&) <near match> inline const QString
> &asString(const QString &s)    { return s; } ^~~~~~~~
> /usr/include/qt5/QtCore/qstring.h:1862:23: note:   conversion of argument 1
> would be ill-formed: In file included from
> /usr/include/qt5/QtCore/qnamespace.h:43:0,
>                  from /usr/include/qt5/QtCore/qobjectdefs.h:48,
>                  from /usr/include/qt5/QtCore/qobject.h:46,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52:
> error: invalid user-defined conversion from ‘qint32 {aka int}’ to ‘const
> QString&’ [-fpermissive] << ": Received " << qPrintable(id); ^
> In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /usr/include/qt5/QtCore/qstring.h:829:5: note: candidate is:
> QString::QString(const char*) <near match> QString(const char *ch);
>      ^~~~~~~
> /usr/include/qt5/QtCore/qstring.h:829:5: note:   conversion of argument 1
> would be ill-formed: In file included from
> /usr/include/qt5/QtCore/qnamespace.h:43:0,
>                  from /usr/include/qt5/QtCore/qobjectdefs.h:48,
>                  from /usr/include/qt5/QtCore/qobject.h:46,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52:
> error: invalid conversion from ‘qint32 {aka int}’ to ‘const char*’
> [-fpermissive] << ": Received " << qPrintable(id); ^
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52:
> error: ‘QString::QString(const char*)’ is private within this context In
> file included from /usr/include/qt5/QtCore/qobject.h:47:0,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /usr/include/qt5/QtCore/qstring.h:829:5: note: declared private here
> QString(const char *ch);
>      ^~~~~~~
> In file included from /usr/include/qt5/QtCore/qnamespace.h:43:0,
>                  from /usr/include/qt5/QtCore/qobjectdefs.h:48,
>                  from /usr/include/qt5/QtCore/qobject.h:46,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52:
> error: invalid conversion from ‘qint32 {aka int}’ to ‘const char*’
> [-fpermissive] << ": Received " << qPrintable(id); ^
> In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /usr/include/qt5/QtCore/qstring.h:829:5: note:   initializing argument 1 of
> ‘QString::QString(const char*)’ QString(const char *ch);
>      ^~~~~~~
> /usr/include/qt5/QtCore/qstring.h:1863:18: note: candidate: QString&&
> QtPrivate::asString(QString&&) <near match> inline QString
> &&asString(QString &&s)              { return std::move(s); } ^~~~~~~~
> /usr/include/qt5/QtCore/qstring.h:1863:18: note:   conversion of argument 1
> would be ill-formed: In file included from
> /usr/include/qt5/QtCore/qnamespace.h:43:0,
>                  from /usr/include/qt5/QtCore/qobjectdefs.h:48,
>                  from /usr/include/qt5/QtCore/qobject.h:46,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:108:52:
> error: invalid user-defined conversion from ‘qint32 {aka int}’ to
> ‘QString&&’ [-fpermissive] << ": Received " << qPrintable(id); ^
> In file included from /usr/include/qt5/QtCore/qobject.h:47:0,
>                  from /usr/include/qt5/QtCore/QObject:1,
>                  from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.h:22, from
> /home/rlk/sandbox/kphotoalbum/RemoteControl/RemoteConnection.cpp:19:
> /usr/include/qt5/QtCore/qstring.h:829:5: note: candidate is:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20180606/09de8366/attachment.htm>


More information about the Kphotoalbum mailing list