diff options
author | Marc Mutz <[email protected]> | 2017-04-07 12:44:01 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2017-04-07 14:35:04 +0000 |
commit | 25d1bbb84939b6960f16e82254fc844839ddfa54 (patch) | |
tree | 619233c312d38b30dd4242db957b7a9c612d2fd1 /examples/xml | |
parent | f497dea73080c2d8910bd5b6d74c9a6226db0c92 (diff) |
examples: remove some unneeded QStringRef::toString() calls
- when appending to another string
- when just comparing
- when just calling toInt()
Change-Id: I6960784569b83bfd3e3640a8c04f2f909c293449
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'examples/xml')
-rw-r--r-- | examples/xml/rsslisting/rsslisting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/xml/rsslisting/rsslisting.cpp b/examples/xml/rsslisting/rsslisting.cpp index f5321483542..d1b43735316 100644 --- a/examples/xml/rsslisting/rsslisting.cpp +++ b/examples/xml/rsslisting/rsslisting.cpp @@ -231,9 +231,9 @@ void RSSListing::parseXml() } else if (xml.isCharacters() && !xml.isWhitespace()) { if (currentTag == "title") - titleString += xml.text().toString(); + titleString += xml.text(); else if (currentTag == "link") - linkString += xml.text().toString(); + linkString += xml.text(); } } if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError) { |