Make QDBusObjectPath QDebug stream operator a hidden friend

Because that's how we declare them these days.

Found in API-review.

Amends c89b1bbddc73b044762cabc67c1e5063a6ffee86.

Change-Id: I5163952e43abc1185b8f8f5c5fde2b4839e78e0d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Kai Uwe Broulik <kde@privat.broulik.de>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 9387ea21cd4ab26dc6a5cdc5d6a732be1fe8e429)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2024-06-05 22:21:19 +02:00 committed by Qt Cherry-pick Bot
parent 9a95c4ba4b
commit 9f1b4d4e09

View File

@ -38,6 +38,9 @@ public:
operator QVariant() const;
private:
#ifndef QT_NO_DEBUG_STREAM
Q_DBUS_EXPORT friend QDebug operator<<(QDebug, const QDBusObjectPath &);
#endif
void doCheck();
};
Q_DECLARE_SHARED(QDBusObjectPath)
@ -69,9 +72,6 @@ inline bool operator<(const QDBusObjectPath &lhs, const QDBusObjectPath &rhs)
inline size_t qHash(const QDBusObjectPath &objectPath, size_t seed = 0)
{ return qHash(objectPath.path(), seed); }
#ifndef QT_NO_DEBUG_STREAM
Q_DBUS_EXPORT QDebug operator<<(QDebug, const QDBusObjectPath &);
#endif
class Q_DBUS_EXPORT QDBusSignature
{