summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-03-23 18:42:07 +0100
committerMarc Mutz <marc.mutz@qt.io>2022-03-26 12:01:03 +0100
commit64db79f8560472b458cd80de52a1939b5bae2703 (patch)
tree049cfad976d7ba84152125ade67a50c826cdeae3 /src/xml
parentb6251958932be5966258f362dc9bb7c7475d2d0a (diff)
QDom: remove uneeded toString()
The trimmed() function is available on QStringView, too. Pick-to: 6.3 6.2 Change-Id: I0cfde56d910da5abbebfb57396b22a1d21bdf763 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/dom/qdomhelpers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml/dom/qdomhelpers.cpp b/src/xml/dom/qdomhelpers.cpp
index 264a17de3d..aa499616d7 100644
--- a/src/xml/dom/qdomhelpers.cpp
+++ b/src/xml/dom/qdomhelpers.cpp
@@ -364,7 +364,7 @@ bool QDomParser::parseBody()
break;
case QXmlStreamReader::Characters:
if (!reader->isWhitespace()) { // Skip the content consisting of only whitespaces
- if (!reader->text().toString().trimmed().isEmpty()) {
+ if (!reader->text().trimmed().isEmpty()) {
if (!domBuilder.characters(reader->text().toString(), reader->isCDATA())) {
domBuilder.fatalError(QDomParser::tr(
"Error occurred while processing the element content"));