[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [ktexteditor] src/buffer: more const-ness
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2016-09-07 20:25:57
Message-ID: E1bhjPx-0002Iu-88 () code ! kde ! org
[Download RAW message or body]
Git commit 65c071cff01d52509e22fa9310cbd60b5a8e235c by Christoph Cullmann.
Committed on 07/09/2016 at 20:25.
Pushed by cullmann into branch 'master'.
more const-ness
M +2 -2 src/buffer/katetextblock.cpp
http://commits.kde.org/ktexteditor/65c071cff01d52509e22fa9310cbd60b5a8e235c
diff --git a/src/buffer/katetextblock.cpp b/src/buffer/katetextblock.cpp
index 6e64667..431c24d 100644
--- a/src/buffer/katetextblock.cpp
+++ b/src/buffer/katetextblock.cpp
@@ -536,7 +536,7 @@ TextBlock *TextBlock::splitBlock(int fromLine)
m_cursors = oldBlockSet;
// fix ALL ranges!
- QList<TextRange *> allRanges = m_uncachedRanges.toList() + m_cachedLineForRanges.keys();
+ const QList<TextRange *> allRanges = m_uncachedRanges.toList() + m_cachedLineForRanges.keys();
foreach (TextRange *range, allRanges) {
// update both blocks
updateRange(range);
@@ -565,7 +565,7 @@ void TextBlock::mergeBlock(TextBlock *targetBlock)
m_lines.clear();
// fix ALL ranges!
- QList<TextRange *> allRanges = m_uncachedRanges.toList() + m_cachedLineForRanges.keys();
+ const QList<TextRange *> allRanges = m_uncachedRanges.toList() + m_cachedLineForRanges.keys();
foreach (TextRange *range, allRanges) {
// update both blocks
updateRange(range);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic