[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-13 16:44:11
Message-ID: 20101113164411.43A62AC89E () svn ! kde ! org
[Download RAW message or body]
SVN commit 1196608 by cullmann:
merge milians performance tweaks
M +5 -5 katetexthistory.cpp
--- trunk/KDE/kdelibs/kate/buffer/katetexthistory.cpp #1196607:1196608
@@ -181,7 +181,7 @@
*/
int unreferencedEdits = 0;
for (int i = 0; i + 1 < m_historyEntries.size(); ++i) {
- if (m_historyEntries[i].referenceCounter)
+ if (m_historyEntries.at(i).referenceCounter)
break;
// remember deleted count
@@ -470,12 +470,12 @@
*/
if (toRevision > fromRevision) {
for (int rev = fromRevision - m_firstHistoryEntryRevision + 1; rev <= \
(toRevision - m_firstHistoryEntryRevision); ++rev) {
- const Entry &entry = m_historyEntries[rev];
+ const Entry &entry = m_historyEntries.at(rev);
entry.transformCursor (line, column, moveOnInsert);
}
} else {
for (int rev = fromRevision - m_firstHistoryEntryRevision; rev >= (toRevision - \
m_firstHistoryEntryRevision + 1); --rev) {
- const Entry &entry = m_historyEntries[rev];
+ const Entry &entry = m_historyEntries.at(rev);
entry.reverseTransformCursor (line, column, moveOnInsert);
}
}
@@ -532,7 +532,7 @@
*/
if (toRevision > fromRevision) {
for (int rev = fromRevision - m_firstHistoryEntryRevision + 1; rev <= \
(toRevision - m_firstHistoryEntryRevision); ++rev) {
- const Entry &entry = m_historyEntries[rev];
+ const Entry &entry = m_historyEntries.at(rev);
entry.transformCursor (startLine, startColumn, moveOnInsertStart);
@@ -554,7 +554,7 @@
}
} else {
for (int rev = fromRevision - m_firstHistoryEntryRevision ; rev >= (toRevision - \
m_firstHistoryEntryRevision + 1); --rev) {
- const Entry &entry = m_historyEntries[rev];
+ const Entry &entry = m_historyEntries.at(rev);
entry.reverseTransformCursor (startLine, startColumn, moveOnInsertStart);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic