summaryrefslogtreecommitdiffstats
path: root/kspell2/filter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kspell2/filter.cpp')
-rw-r--r--kspell2/filter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kspell2/filter.cpp b/kspell2/filter.cpp
index 1604bcae1..6b62481ad 100644
--- a/kspell2/filter.cpp
+++ b/kspell2/filter.cpp
@@ -202,7 +202,7 @@ int Filter::currentPosition() const
return m_currentPosition;
}
-void Filter::replace( const Word& w, const TQString& newWord)
+void Filter::tqreplace( const Word& w, const TQString& newWord)
{
int oldLen = w.word.length();
int newLen = newWord.length();
@@ -213,7 +213,7 @@ void Filter::replace( const Word& w, const TQString& newWord)
m_currentPosition += len;
}
}
- m_buffer = m_buffer.replace( w.start, oldLen, newWord );
+ m_buffer = m_buffer.tqreplace( w.start, oldLen, newWord );
}
TQString Filter::context() const
@@ -227,7 +227,7 @@ TQString Filter::context() const
TQString buffer = m_buffer;
Word word = wordAtPosition( m_currentPosition );
- buffer = buffer.replace( word.start, word.word.length(),
+ buffer = buffer.tqreplace( word.start, word.word.length(),
TQString( "<b>%1</b>" ).arg( word.word ) );
TQString context;
@@ -238,7 +238,7 @@ TQString Filter::context() const
context = TQString( "...%1..." )
.arg( buffer.mid( m_currentPosition - 20, len ) );
- context = context.replace( '\n', ' ' );
+ context = context.tqreplace( '\n', ' ' );
return context;
}