summaryrefslogtreecommitdiffstats
path: root/src/kgpgme.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit33f08e93132a53bf14f41f5f1e567eeea832b336 (patch)
treef71204bc1c7d41a0545805a1276c5af43e1c3094 /src/kgpgme.cpp
parent14284db4dfa93999d6227344141e8663d9fcf7f9 (diff)
downloadbasket-33f08e93132a53bf14f41f5f1e567eeea832b336.tar.gz
basket-33f08e93132a53bf14f41f5f1e567eeea832b336.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/basket@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kgpgme.cpp')
-rw-r--r--src/kgpgme.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kgpgme.cpp b/src/kgpgme.cpp
index 5f6d355..e53c01f 100644
--- a/src/kgpgme.cpp
+++ b/src/kgpgme.cpp
@@ -155,18 +155,18 @@ TQString KGpgMe::checkForUtf8(TQString txt)
for(s = txt.ascii(); *s && !(*s & 0x80); s++)
;
- if (*s && !strchr (txt.ascii(), 0xc3) && (txt.tqfind("\\x")==-1))
+ if (*s && !strchr (txt.ascii(), 0xc3) && (txt.find("\\x")==-1))
return txt;
// The string is not in UTF-8
//if (strchr (txt.ascii(), 0xc3)) return (txt+" +++");
- if (txt.tqfind("\\x")==-1)
+ if (txt.find("\\x")==-1)
return TQString::fromUtf8(txt.ascii());
- // if (!strchr (txt.ascii(), 0xc3) || (txt.tqfind("\\x")!=-1)) {
- for(int idx = 0 ; (idx = txt.tqfind( "\\x", idx )) >= 0 ; ++idx) {
+ // if (!strchr (txt.ascii(), 0xc3) || (txt.find("\\x")!=-1)) {
+ for(int idx = 0 ; (idx = txt.find( "\\x", idx )) >= 0 ; ++idx) {
char str[2] = "x";
str[0] = (char)TQString(txt.mid(idx + 2, 2)).toShort(0, 16);
- txt.tqreplace(idx, 4, str);
+ txt.replace(idx, 4, str);
}
if (!strchr (txt.ascii(), 0xc3))
return TQString::fromUtf8(txt.ascii());
@@ -361,7 +361,7 @@ bool KGpgMe::isGnuPGAgentAvailable()
{
TQString agent_info = getenv("GPG_AGENT_INFO");
- if (agent_info.tqfind(':') > 0)
+ if (agent_info.find(':') > 0)
return true;
return false;
}
@@ -375,7 +375,7 @@ void KGpgMe::setPassphraseCb()
if(m_useGnuPGAgent)
{
- if (agent_info.tqfind(':'))
+ if (agent_info.find(':'))
agent = true;
if(agent_info.startsWith("disable:"))
setenv("GPG_AGENT_INFO", agent_info.mid(8), 1);