summaryrefslogtreecommitdiff
path: root/src/gui/fonts/textchunklist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/fonts/textchunklist.cpp')
-rw-r--r--src/gui/fonts/textchunklist.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/fonts/textchunklist.cpp b/src/gui/fonts/textchunklist.cpp
index 98d90e23d..ec6083d7d 100644
--- a/src/gui/fonts/textchunklist.cpp
+++ b/src/gui/fonts/textchunklist.cpp
@@ -54,10 +54,10 @@ void TextChunkList::moveToFirst(TextChunk *const item)
if (item == start)
return;
- TextChunk *oldPrev = item->prev;
+ TextChunk *const oldPrev = item->prev;
if (oldPrev)
oldPrev->next = item->next;
- TextChunk *oldNext = item->next;
+ TextChunk *const oldNext = item->next;
if (oldNext)
oldNext->prev = item->prev;
else
@@ -121,7 +121,7 @@ void TextChunkList::clear()
TextChunk *item = start;
while (item)
{
- TextChunk *item2 = item->next;
+ TextChunk *const item2 = item->next;
delete item;
item = item2;
}