mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
cleanup
This commit is contained in:
parent
326fd655cb
commit
234d46a480
|
@ -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))
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <QString>
|
||||
#include <QObject>
|
||||
|
||||
//maps emoticons to smilies
|
||||
//maps emoticons to smileys
|
||||
class SmileyPack : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
Loading…
Reference in New Issue
Block a user