Browse Source

cleanup

pull/166/head
krepa098 11 years ago
parent
commit
234d46a480
  1. 4
      smileypack.cpp
  2. 2
      smileypack.h

4
smileypack.cpp

@ -95,8 +95,8 @@ QString SmileyPack::replaceEmoticons(const QString &msg) const @@ -95,8 +95,8 @@ QString SmileyPack::replaceEmoticons(const QString &msg) const
int index = msg.indexOf(exp);
int offset = 0;
// if a word is key of a smiley, replace it by it's corresponding image in Rich Text
while (index >= 0 || exp.matchedLength() > 0)
// if a word is key of a smiley, replace it by its corresponding image in Rich Text
while (index >= 0)
{
QString key = exp.cap();
if (lookupTable.contains(key))

2
smileypack.h

@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
#include <QString>
#include <QObject>
//maps emoticons to smilies
//maps emoticons to smileys
class SmileyPack : public QObject
{
Q_OBJECT

Loading…
Cancel
Save