diff options
-rw-r--r-- | src/gui/truetypefont.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/truetypefont.cpp b/src/gui/truetypefont.cpp index fe507489..5ebe16c6 100644 --- a/src/gui/truetypefont.cpp +++ b/src/gui/truetypefont.cpp @@ -43,11 +43,6 @@ class TextChunk delete img; } - bool operator==(const std::string &str) const - { - return (str == text); - } - bool operator==(const TextChunk &chunk) const { return (chunk.text == text && chunk.color == color); @@ -170,7 +165,7 @@ int TrueTypeFont::getWidth(const std::string &text) const { for (CacheIterator i = mCache.begin(); i != mCache.end(); i++) { - if ((*i) == text) + if (i->text == text) { // Raise priority: move it to front // Assumption is that TTF::draw will be called next |