summaryrefslogtreecommitdiffstats
path: root/libkdepim/spellingfilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/spellingfilter.cpp')
-rw-r--r--libkdepim/spellingfilter.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libkdepim/spellingfilter.cpp b/libkdepim/spellingfilter.cpp
index a0861098..cc94968d 100644
--- a/libkdepim/spellingfilter.cpp
+++ b/libkdepim/spellingfilter.cpp
@@ -89,7 +89,7 @@ void SpellingFilter::TextCensor::censorQuotations(const TQString& quotePrefix)
int len = mPos - start;
TQString spaces;
spaces.fill(' ', len);
- mText.tqreplace(start, len, spaces);
+ mText.replace(start, len, spaces);
//kdDebug(5006) << "censored quotation ["
// << start << ", " << mPos << ")" << endl;
@@ -116,7 +116,7 @@ void SpellingFilter::TextCensor::censorUrls()
// Replace url with spaces
url.fill(' ');
- mText.tqreplace(start, url.length(), url);
+ mText.replace(start, url.length(), url);
//kdDebug(5006) << "censored url ["
// << start << ", " << mPos << ")" << endl;
@@ -141,7 +141,7 @@ void SpellingFilter::TextCensor::censorEmailAddresses()
// Replace address with spaces
address.fill(' ');
- mText.tqreplace(start, address.length(), address);
+ mText.replace(start, address.length(), address);
//kdDebug(5006) << "censored addr ["
// << start << ", "<< mPos << ")" << endl;
@@ -156,13 +156,13 @@ void SpellingFilter::TextCensor::censorString(const TQString& s)
while(mPos != -1)
{
// Find start of string
- mPos = mText.tqfind(s, mPos);
+ mPos = mText.find(s, mPos);
if(mPos != -1)
{
// Replace string with spaces
TQString spaces;
spaces.fill(' ', s.length());
- mText.tqreplace(mPos, s.length(), spaces);
+ mText.replace(mPos, s.length(), spaces);
mPos += s.length();
//kdDebug(5006) << "censored string ["
@@ -187,7 +187,7 @@ bool SpellingFilter::TextCensor::atLineStart() const
void SpellingFilter::TextCensor::skipLine()
{
- mPos = mText.tqfind('\n', mPos);
+ mPos = mText.find('\n', mPos);
if(mPos == -1)
mPos = static_cast<int>(mText.length());
else