summaryrefslogtreecommitdiffstats
path: root/src/kgpgme.cpp
diff options
context:
space:
mode:
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);