summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoTextIterator.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-24 10:47:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-24 22:32:24 +0900
commitf9893e5b16c7694da25e60805fe751691e127e85 (patch)
tree2b204fdab8798eaed0346d1b24bb646c6c89085c /lib/kotext/KoTextIterator.cpp
parent8263fdf7603821cad365e436ab78557f40a9e9db (diff)
downloadkoffice-f9893e5b16c7694da25e60805fe751691e127e85.tar.gz
koffice-f9893e5b16c7694da25e60805fe751691e127e85.zip
Replaced various '#define' with actual strings - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit dcc4dc7a89e5f5f7fb4217815b892f4b0106d5a0)
Diffstat (limited to 'lib/kotext/KoTextIterator.cpp')
-rw-r--r--lib/kotext/KoTextIterator.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/kotext/KoTextIterator.cpp b/lib/kotext/KoTextIterator.cpp
index 73468f7e1..8ac76173d 100644
--- a/lib/kotext/KoTextIterator.cpp
+++ b/lib/kotext/KoTextIterator.cpp
@@ -306,19 +306,19 @@ TQPair<int, TQString> KoTextIterator::currentTextAndIndex() const
if ( m_currentParag == m_firstParag )
{
if ( m_firstParag == m_lastParag ) // special case, needs truncating at both ends
- return forw ? tqMakePair( m_firstIndex, str.mid( m_firstIndex, m_lastIndex - m_firstIndex ) )
- : tqMakePair( m_lastIndex, str.mid( m_lastIndex, m_firstIndex - m_lastIndex ) );
+ return forw ? qMakePair( m_firstIndex, str.mid( m_firstIndex, m_lastIndex - m_firstIndex ) )
+ : qMakePair( m_lastIndex, str.mid( m_lastIndex, m_firstIndex - m_lastIndex ) );
else
- return forw ? tqMakePair( m_firstIndex, str.mid( m_firstIndex ) )
- : tqMakePair( 0, str.left( m_firstIndex ) );
+ return forw ? qMakePair( m_firstIndex, str.mid( m_firstIndex ) )
+ : qMakePair( 0, str.left( m_firstIndex ) );
}
if ( m_currentParag == m_lastParag )
{
- return forw ? tqMakePair( 0, str.left( m_lastIndex ) )
- : tqMakePair( m_lastIndex, str.mid( m_lastIndex ) );
+ return forw ? qMakePair( 0, str.left( m_lastIndex ) )
+ : qMakePair( m_lastIndex, str.mid( m_lastIndex ) );
}
// Not the first parag, nor the last, so we return it all
- return tqMakePair( 0, str );
+ return qMakePair( 0, str );
}
bool KoTextIterator::hasText() const