summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorSergio Ahumada <sahumada@blackberry.com>2015-02-09 16:14:19 +0100
committerSergio Ahumada <sahumada@texla.cl>2015-02-11 13:51:36 +0000
commit0c1409fb517e98200cdc4d4790aa03119f14cb9f (patch)
tree90c6f143a9ee591211adde435be02544384385bd /src/tools
parentb398e069ca8bd01ba7ca67781b7ca21402ffdbbe (diff)
Use single-char QString operations for efficiency
Change-Id: Ifdb98e21999ecdcf57c89a3664b8d0db796c73a1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/sdpscanner/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/sdpscanner/main.cpp b/src/tools/sdpscanner/main.cpp
index 5f2fd976..5cf4ceb0 100644
--- a/src/tools/sdpscanner/main.cpp
+++ b/src/tools/sdpscanner/main.cpp
@@ -152,10 +152,10 @@ static void parseAttributeValues(sdp_data_t *data, int indentation, QByteArray &
xmlOutput.append("encoding=\"hex\" value=\"");
xmlOutput.append(text.toHex());
} else {
- text.replace("&", "&amp");
- text.replace("<", "&lt");
- text.replace(">", "&gt");
- text.replace("\"", "&quot");
+ text.replace('&', "&amp");
+ text.replace('<', "&lt");
+ text.replace('>', "&gt");
+ text.replace('"', "&quot");
xmlOutput.append("value=\"");
xmlOutput.append(text);