summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-03-19 18:37:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-03-19 18:37:20 +0300
commit0664fee5aeae578dd3d5d6f02332719c3e9af1cb (patch)
treeff995437ec7900c09e43365af074de1813fd434c /src
parent29183043d599655143633daa9f22f310f97a1b54 (diff)
downloadplus-0664fee5aeae578dd3d5d6f02332719c3e9af1cb.tar.gz
plus-0664fee5aeae578dd3d5d6f02332719c3e9af1cb.tar.bz2
plus-0664fee5aeae578dd3d5d6f02332719c3e9af1cb.tar.xz
plus-0664fee5aeae578dd3d5d6f02332719c3e9af1cb.zip
Improve font.
Diffstat (limited to 'src')
-rw-r--r--src/gui/font.cpp2
-rw-r--r--src/gui/font.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/font.cpp b/src/gui/font.cpp
index 8c022f99d..cf3116631 100644
--- a/src/gui/font.cpp
+++ b/src/gui/font.cpp
@@ -294,7 +294,7 @@ void TextChunkList::insertFirst(SDLTextChunk *const item)
searchWidth[item->text] = item;
}
-void TextChunkList::moveToFirst(SDLTextChunk *item)
+void TextChunkList::moveToFirst(SDLTextChunk *const item)
{
if (item == start)
return;
diff --git a/src/gui/font.h b/src/gui/font.h
index 12ba473d8..ee1742942 100644
--- a/src/gui/font.h
+++ b/src/gui/font.h
@@ -130,7 +130,7 @@ class TextChunkList final
void insertFirst(SDLTextChunk *const item);
- void moveToFirst(SDLTextChunk *item);
+ void moveToFirst(SDLTextChunk *const item);
void removeBack();