diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-12-09 23:55:50 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-12-11 11:46:34 +0100 |
commit | 6551ec5cfdc823c2dd316ff8b7d694094c68b04f (patch) | |
tree | 60d583038bc9b6a82a6fc3b4de32d9f966cc790f /src/corelib/serialization | |
parent | ede4a508ce8764daf44c600236d3e31e8e5750b4 (diff) | |
download | qtbase-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.cpp | 3 |
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; }; |