diff options
Diffstat (limited to 'src/gui/fonts')
-rw-r--r-- | src/gui/fonts/font.cpp | 2 | ||||
-rw-r--r-- | src/gui/fonts/textchunklist.cpp | 2 | ||||
-rw-r--r-- | src/gui/fonts/textchunklist.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp index 6ba7a2ffb..31ca8552a 100644 --- a/src/gui/fonts/font.cpp +++ b/src/gui/fonts/font.cpp @@ -389,7 +389,7 @@ void Font::generate(TextChunk &chunk) { TextChunk *const chunk2 = (*i).second; cache->moveToFirst(chunk2); - //search.erase(key); +// search.erase(key); cache->remove(chunk2); chunk.img = chunk2->img; chunk2->img = nullptr; diff --git a/src/gui/fonts/textchunklist.cpp b/src/gui/fonts/textchunklist.cpp index 023727282..24b46bea0 100644 --- a/src/gui/fonts/textchunklist.cpp +++ b/src/gui/fonts/textchunklist.cpp @@ -70,7 +70,7 @@ void TextChunkList::moveToFirst(TextChunk *const item) start = item; } -void TextChunkList::remove(TextChunk *const item) +void TextChunkList::remove(const TextChunk *const item) { if (!item) return; diff --git a/src/gui/fonts/textchunklist.h b/src/gui/fonts/textchunklist.h index 1f5eff0ea..cbc7b9ebf 100644 --- a/src/gui/fonts/textchunklist.h +++ b/src/gui/fonts/textchunklist.h @@ -40,7 +40,7 @@ class TextChunkList final void moveToFirst(TextChunk *const item); - void remove(TextChunk *const item); + void remove(const TextChunk *const item); void removeBack(); |