OSDN Git Service

WelcomePage: use remove instead of replace QChar()
authorThomas Hartmann <Thomas.Hartmann@nokia.com>
Wed, 28 Sep 2011 13:25:07 +0000 (15:25 +0200)
committerhjk <qthjk@ovi.com>
Wed, 28 Sep 2011 13:31:52 +0000 (15:31 +0200)
QChar() == '0' != ''

Change-Id: Iec9e87eb3332088934660a73ec85e2726ef533fd
Reviewed-on: http://codereview.qt-project.org/5722
Reviewed-by: hjk <qthjk@ovi.com>
src/plugins/qtsupport/exampleslistmodel.cpp

index 4ed73fa..7bf47ed 100644 (file)
@@ -76,10 +76,10 @@ ExamplesListModel::ExamplesListModel(QObject *parent) :
 static inline QString fixSTringForTags(const QString &string)
 {
     QString returnString = string;
-    returnString.replace(QLatin1String("<i>"), QChar());
-    returnString.replace(QLatin1String("</i>"), QChar());
-    returnString.replace(QLatin1String("<tt>"), QChar());
-    returnString.replace(QLatin1String("</tt>"), QChar());
+    returnString.remove(QLatin1String("<i>"));
+    returnString.remove(QLatin1String("</i>"));
+    returnString.remove(QLatin1String("<tt>"));
+    returnString.remove(QLatin1String("</tt>"));
     return returnString;
 }