[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/buffer
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2010-11-06 18:31:26
Message-ID: 20101106183126.A0C87AC8A0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1193674 by cullmann:
mwolff:
make TextRange::checkValidity faster by not doing and obsolete conversions
CCBUG: 215200
M +3 -3 katetextrange.cpp
--- trunk/KDE/kdelibs/kate/buffer/katetextrange.cpp #1193673:1193674
@@ -171,7 +171,7 @@
/**
* check if any cursor is invalid or the range is zero size and it should be \
invalidated then
*/
- if (!m_start.toCursor().isValid() || !m_end.toCursor().isValid() || \
(m_invalidateIfEmpty && m_end.toCursor() <= m_start.toCursor())) { + if \
(!m_start.isValid() || !m_end.isValid() || (m_invalidateIfEmpty && m_end <= m_start)) \
{ m_start.setPosition (-1, -1);
m_end.setPosition (-1, -1);
}
@@ -179,8 +179,8 @@
/**
* for ranges which are allowed to become empty, normalize them, if the end has \
moved to the front of the start
*/
- if (!m_invalidateIfEmpty && m_end.toCursor() < m_start.toCursor())
- m_end.setPosition (m_start.toCursor());
+ if (!m_invalidateIfEmpty && m_end < m_start)
+ m_end.setPosition (m_start);
// fix lookup
fixLookup (oldStartLine, oldEndLine, m_start.line(), m_end.line());
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic