summaryrefslogtreecommitdiffstats
path: root/kdeprint/util.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
commit6e21bc798ba1066147d69dcc2d5c222ffafb9a90 (patch)
tree36613dfe2f86f8ccb96a30f3880507341228eeb0 /kdeprint/util.cpp
parent1e9fe867b0def399c63c42f35e83c3575e91ff83 (diff)
downloadtdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.tar.gz
tdelibs-6e21bc798ba1066147d69dcc2d5c222ffafb9a90.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/util.cpp')
-rw-r--r--kdeprint/util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kdeprint/util.cpp b/kdeprint/util.cpp
index 28e9afcba..f47db5017 100644
--- a/kdeprint/util.cpp
+++ b/kdeprint/util.cpp
@@ -44,7 +44,7 @@ KURL smbToUrl(const TQString& s)
{
// allow to handle non-encoded chars in login/password
KURL url;
- int p = s.tqfind('@');
+ int p = s.find('@');
if (p == -1)
{
// assumes url starts with "smb://". Use encoding in
@@ -56,7 +56,7 @@ KURL smbToUrl(const TQString& s)
// assumes URL starts with "smb://"
TQString username = s.mid(6, p-6);
url = KURL("smb://" + KURL::encode_string(s.mid(p+1)));
- int q = username.tqfind(':');
+ int q = username.find(':');
if (q == -1)
url.setUser(username);
else
@@ -99,14 +99,14 @@ bool splitSmbURI( const TQString& uri, TQString& work, TQString& server, TQStrin
return false;
p = 6;
- int p1 = uri.tqfind( '/', p );
+ int p1 = uri.find( '/', p );
if ( p1 != -1 )
{
- int p2 = uri.tqfind( '@', p );
+ int p2 = uri.find( '@', p );
if ( p2 != -1 && p2 < p1 )
{
// Got a user
- int p3 = uri.tqfind( ':', p );
+ int p3 = uri.find( ':', p );
if ( p3 != -1 && p3 < p2 )
{
// Got a password