summaryrefslogtreecommitdiffstats
path: root/kdeui/kstringvalidator.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 /kdeui/kstringvalidator.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 'kdeui/kstringvalidator.cpp')
-rw-r--r--kdeui/kstringvalidator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kdeui/kstringvalidator.cpp b/kdeui/kstringvalidator.cpp
index 2e0d3b167..4c2f33890 100644
--- a/kdeui/kstringvalidator.cpp
+++ b/kdeui/kstringvalidator.cpp
@@ -30,12 +30,12 @@ TQValidator::State KStringListValidator::validate( TQString & input, int& ) cons
if ( input.isEmpty() ) return Intermediate;
if ( isRejecting() ) // anything not in mStringList is acceptable:
- if ( mStringList.tqfind( input ) == mStringList.end() )
+ if ( mStringList.find( input ) == mStringList.end() )
return Acceptable;
else
return Intermediate;
else // only what is in mStringList is acceptable:
- if ( mStringList.tqfind( input ) != mStringList.end() )
+ if ( mStringList.find( input ) != mStringList.end() )
return Acceptable;
else
for ( TQStringList::ConstIterator it = mStringList.begin() ;
@@ -84,7 +84,7 @@ TQValidator::State KMimeTypeValidator::validate( TQString & input, int& ) const
void KMimeTypeValidator::fixup( TQString & input ) const
{
TQRegExp invalidChars("[^/" ALLOWED_CHARS "]+");
- input.tqreplace( invalidChars, TQString());
+ input.replace( invalidChars, TQString());
}
#include "kstringvalidator.moc"