[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/ksirc
From: Frerich Raabe <raabe () kde ! org>
Date: 2004-02-03 16:21:36
Message-ID: 20040203162136.B768798F1 () office ! kde ! org
[Download RAW message or body]
CVS commit by raabe:
- QString::replace does not require a QRegExp anymore
M +4 -8 topic.cpp 1.17
--- kdenetwork/ksirc/topic.cpp #1.16:1.17
@@ -52,13 +52,9 @@ void KSircTopic::setText( const QString
richText = richText.arg( ksopts->textColor.name() );
- QRegExp ampRex("&");
- QRegExp ltRex("<");
- QRegExp gtRex(">");
- text.replace(ampRex, "&");
- text.replace(ltRex, "<");
- text.replace(gtRex, ">");
+ text.replace('&', "&");
+ text.replace('<', "<");
+ text.replace('>', ">");
- QRegExp tildeRex("~");
- text.replace(tildeRex, "~~");
+ text.replace('~', "~~");
// ### a bit of a hack: turn '<nick> message' into
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic