summaryrefslogtreecommitdiff
path: root/src/corelib/serialization
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-12-09 23:55:50 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-12-11 11:46:34 +0100
commit6551ec5cfdc823c2dd316ff8b7d694094c68b04f (patch)
tree60d583038bc9b6a82a6fc3b4de32d9f966cc790f /src/corelib/serialization
parentede4a508ce8764daf44c600236d3e31e8e5750b4 (diff)
downloadqtbase-6551ec5cfdc823c2dd316ff8b7d694094c68b04f.tar.gz
QXmlStreamWriter: remove unused [[maybe_unused]]
Q_ASSERT() already ensures its argument gets compiled even with QT_NO_DEBUG, but then skipped as dead code. Task-number: QTBUG-103302 Change-Id: I6614b23967e2bb506e52f1493526564a0b5955be Reviewed-by: Mate Barany <mate.barany@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/serialization')
-rw-r--r--src/corelib/serialization/qxmlstream.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/corelib/serialization/qxmlstream.cpp b/src/corelib/serialization/qxmlstream.cpp
index 16c234b3cd..8150a0e0a6 100644
--- a/src/corelib/serialization/qxmlstream.cpp
+++ b/src/corelib/serialization/qxmlstream.cpp
@@ -64,21 +64,18 @@ auto transform(QUtf8StringView haystack, char needle)
return R{haystack, needle};
}
-[[maybe_unused]]
auto transform(QLatin1StringView haystack, QLatin1StringView needle)
{
struct R { QLatin1StringView haystack; QLatin1StringView needle; };
return R{haystack, needle};
}
-[[maybe_unused]]
auto transform(QStringView haystack, QLatin1StringView needle)
{
struct R { QStringView haystack; QLatin1StringView needle; };
return R{haystack, needle};
}
-[[maybe_unused]]
auto transform(QUtf8StringView haystack, QLatin1StringView needle)
{
struct R { QLatin1StringView haystack; QLatin1StringView needle; };