diff options
Diffstat (limited to 'kate/part/katetextline.cpp')
-rw-r--r-- | kate/part/katetextline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kate/part/katetextline.cpp b/kate/part/katetextline.cpp index 1d6fcf452..687c54b9c 100644 --- a/kate/part/katetextline.cpp +++ b/kate/part/katetextline.cpp @@ -238,7 +238,7 @@ int KateTextLine::cursorX(uint pos, uint tabChars) const { uint x = 0; - const uint n = kMin (pos, m_text.length()); + const uint n = kMin (pos, (uint)m_text.length()); const TQChar *tqunicode = m_text.tqunicode(); for ( uint z = 0; z < n; z++) @@ -282,12 +282,12 @@ bool KateTextLine::searchText (uint startCol, const TQString &text, uint *foundA if ( col == (int) m_text.length() ) ++startCol; do { - index = m_text.findRev( text, col, casesensitive ); + index = m_text.tqfindRev( text, col, casesensitive ); col--; } while ( col >= 0 && l + index >= startCol ); } else - index = m_text.find (text, startCol, casesensitive); + index = m_text.tqfind (text, startCol, casesensitive); if (index > -1) { |