Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix QByteArray vs QLatin1StringView operator+() ambiguity
After the operator=() overloads for QBA vs QBAV were added, the concatenation of QL1SV vs QBA became ambiguous, because both QBAV and QString can be constructed from QL1SV. Mark the new operators as Q_WEAK_OVERLOADs to avoid the ambiguity. The other possible fix would be to introduce the whole set of operator+() overloads for QL1SV, but that includes overloads with QBAV, QBA, and const char *, so I decided to choose the approach that requires less changes. Amends 7b70761. Task-number: QTBUG-127904 Task-number: QTBUG-127928 Task-number: QTBUG-127931 Change-Id: I92d527890a879263534cda62e30c92c234fb36a7 Reviewed-by: Volker Hilsheimer <[email protected]> Reviewed-by: Matthias Rauter <[email protected]>
- Loading branch information