From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: 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 --- kspell2/filter.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kspell2/filter.cpp') diff --git a/kspell2/filter.cpp b/kspell2/filter.cpp index 6b62481ad..1604bcae1 100644 --- a/kspell2/filter.cpp +++ b/kspell2/filter.cpp @@ -202,7 +202,7 @@ int Filter::currentPosition() const return m_currentPosition; } -void Filter::tqreplace( const Word& w, const TQString& newWord) +void Filter::replace( const Word& w, const TQString& newWord) { int oldLen = w.word.length(); int newLen = newWord.length(); @@ -213,7 +213,7 @@ void Filter::tqreplace( const Word& w, const TQString& newWord) m_currentPosition += len; } } - m_buffer = m_buffer.tqreplace( w.start, oldLen, newWord ); + m_buffer = m_buffer.replace( 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.tqreplace( word.start, word.word.length(), + buffer = buffer.replace( word.start, word.word.length(), TQString( "%1" ).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.tqreplace( '\n', ' ' ); + context = context.replace( '\n', ' ' ); return context; } -- cgit v1.2.1