Skip to content

Commit

Permalink
Export KDQName debug stream operator
Browse files Browse the repository at this point in the history
This is needed with Qt 6, if the operator is externally visible it is also
assumed to be exported, causing linker errors in consumer code otherwise.

The alternative approach would be to remove the declaration from the header
file entirely.
  • Loading branch information
vkrause authored and dfaure-kdab committed Oct 9, 2022
1 parent a5a3cef commit c7b290b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KDSoapClient/KDQName.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ inline uint qHash(const KDQName &qn)
return qHash(qn.nameSpace()) ^ qHash(qn.localName());
}

QDebug operator<<(QDebug dbg, const KDQName &qn);
KDSOAP_EXPORT QDebug operator<<(QDebug dbg, const KDQName &qn);

#endif

0 comments on commit c7b290b

Please sign in to comment.