summaryrefslogtreecommitdiffstats
path: root/kopete/protocols
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2017-12-29 20:57:17 +0100
committerSlávek Banko <[email protected]>2017-12-29 20:57:28 +0100
commit5747b9f9aacb56161fec97b319f3ae4c6ae10ac9 (patch)
treef2d91a4a731058ba43a6f1b089a05194a18dbff7 /kopete/protocols
parentbfd06d843d327fcacda93813bc9be3c16f68800c (diff)
downloadtdenetwork-5747b9f9aacb56161fec97b319f3ae4c6ae10ac9.tar.gz
tdenetwork-5747b9f9aacb56161fec97b319f3ae4c6ae10ac9.zip
kopete: Fix unintended renaming ICQ => ICTQ
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit c49165ddb7b3a260298e606fc4d4e9fb3b290bca)
Diffstat (limited to 'kopete/protocols')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/rtf.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/rtf.cc b/kopete/protocols/groupwise/libgroupwise/rtf.cc
index a74b4c67..edeb0239 100644
--- a/kopete/protocols/groupwise/libgroupwise/rtf.cc
+++ b/kopete/protocols/groupwise/libgroupwise/rtf.cc
@@ -2273,7 +2273,7 @@ void Level::flush()
/*
const char *encoding = NULL;
if (m_nEncoding){
- for (const ENCODING *c = ICTQPlugin::core->encodings; c->language; c++){
+ for (const ENCODING *c = ICQPlugin::core->encodings; c->language; c++){
if (!c->bMain)
continue;
if ((unsigned)c->rtf_code == m_nEncoding){
@@ -2285,7 +2285,7 @@ void Level::flush()
if (encoding == NULL)
encoding = p->encoding;
- TQTextCodec *codec = ICTQClient::_getCodec(encoding);
+ TQTextCodec *codec = ICQClient::_getCodec(encoding);
*/
//p->PrintQuoted(codec->toUnicode(text.c_str(), text.length()));
p->PrintQuoted(text.c_str());
@@ -2374,15 +2374,15 @@ TQString RTF2HTML::Parse(const char *rtf, const char *_encoding)
}
case IMG:{
cur_level.flush();
- const char ICTQIMAGE[] = "icqimage";
+ const char ICQIMAGE[] = "icqimage";
const char *smiles[] = { ":-)" , ":-O" , ":-|" , ":-/" , // 0-3
":-(" , ":-*" , ":-/" , ":'(" , // 4-7
";-)" , ":-@" , ":-$" , ":-X" , // 8-B
":-P" , "8-)" , "O:)" , ":-D" }; // C-F
const char *p = rtftext + 3;
- if ((strlen(p) > strlen(ICTQIMAGE)) && !memcmp(p, ICTQIMAGE, strlen(ICTQIMAGE))){
+ if ((strlen(p) > strlen(ICQIMAGE)) && !memcmp(p, ICQIMAGE, strlen(ICQIMAGE))){
unsigned n = 0;
- for (p += strlen(ICTQIMAGE); *p; p++){
+ for (p += strlen(ICQIMAGE); *p; p++){
if ((*p >= '0') && (*p <= '9')){
n = n << 4;
n += (*p - '0');
@@ -2516,7 +2516,7 @@ TQString RTF2HTML::Parse(const char *rtf, const char *_encoding)
}
/*
-bool ICTQClient::parseRTF(const char *rtf, const char *encoding, TQString &res)
+bool ICQClient::parseRTF(const char *rtf, const char *encoding, TQString &res)
{
char _RTF[] = "{\\rtf";
if ((strlen(rtf) > strlen(_RTF)) && !memcmp(rtf, _RTF, strlen(_RTF))){
@@ -2524,7 +2524,7 @@ bool ICTQClient::parseRTF(const char *rtf, const char *encoding, TQString &res)
res = p.Parse(rtf, encoding);
return true;
}
- TQTextCodec *codec = ICTQClient::_getCodec(encoding);
+ TQTextCodec *codec = ICQClient::_getCodec(encoding);
res = codec->toUnicode(rtf, strlen(rtf));
return false;
}