summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-06-07 09:49:23 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-06-13 21:01:24 +0200
commit734429f4a3b20f85f231bd9c8920bf3aa7f14e74 (patch)
tree23f86a93d09709f0b1fa3b1e5d7ceaa1a4aacb4a /src/gui
parentcffc667ad9dae10adf415357a606e7253a0c3206 (diff)
QDebug: add support for QVarLengthArray
Remove a conflicting definition of the same operator from qrhi.cpp. Who knows how many ODR violations this hidden gem may have caused... [ChangeLog][QtCore][QDebug] Can now stream QVarLengthArray objects. [ChangeLog][QtCore][QVarLengthArray] Can now be output via QDebug streaming. Change-Id: I12f7670e32029fa8c96b446e9a98ebf3b9732d0d Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/rhi/qrhi.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp
index 78c615451e..4ae75b5df5 100644
--- a/src/gui/rhi/qrhi.cpp
+++ b/src/gui/rhi/qrhi.cpp
@@ -1366,12 +1366,6 @@ size_t qHash(const QRhiVertexInputLayout &v, size_t seed) noexcept
}
#ifndef QT_NO_DEBUG_STREAM
-template<typename T, qsizetype N>
-QDebug operator<<(QDebug dbg, const QVarLengthArray<T, N> &vla)
-{
- return QtPrivate::printSequentialContainer(dbg, "VLA", vla);
-}
-
QDebug operator<<(QDebug dbg, const QRhiVertexInputLayout &v)
{
QDebugStateSaver saver(dbg);