diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-22 17:35:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-22 20:00:36 +0300 |
commit | 6fa671cdc65cd3ad507eca7dbee604418e449aa7 (patch) | |
tree | 9090841ed74fbb80427310cd96118759267b2941 /src/gui/fonts | |
parent | 1b853996cb2616e181e8822f74d79bd258c97c14 (diff) | |
download | manaverse-6fa671cdc65cd3ad507eca7dbee604418e449aa7.tar.gz manaverse-6fa671cdc65cd3ad507eca7dbee604418e449aa7.tar.bz2 manaverse-6fa671cdc65cd3ad507eca7dbee604418e449aa7.tar.xz manaverse-6fa671cdc65cd3ad507eca7dbee604418e449aa7.zip |
Fix code style.
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(); |