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 /kspell2/filter.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 'kspell2/filter.cpp')
-rw-r--r-- | kspell2/filter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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( "<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.tqreplace( '\n', ' ' ); + context = context.replace( '\n', ' ' ); return context; } |