diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdeprint/util.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/util.cpp')
-rw-r--r-- | kdeprint/util.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kdeprint/util.cpp b/kdeprint/util.cpp index 343f52d45..d95ca2c0c 100644 --- a/kdeprint/util.cpp +++ b/kdeprint/util.cpp @@ -44,11 +44,11 @@ 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 - // case the printer name tqcontains chars like '#'. + // case the printer name contains chars like '#'. url = KURL("smb://" + KURL::encode_string(s.mid(6))); } else @@ -56,7 +56,7 @@ KURL smbToUrl(const TQString& s) // assumes URL starts with "smb://" QString 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 @@ -68,7 +68,7 @@ KURL smbToUrl(const TQString& s) return url; } -int tqfindIndex(int ID) +int findIndex(int ID) { for (int i=0; i<KPrinter::NPageSize-1; i++) if (page_sizes[i].ID == ID) @@ -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 |